Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error for valid EDN #18

Open
favetelinguis opened this issue May 4, 2024 · 3 comments
Open

Parse error for valid EDN #18

favetelinguis opened this issue May 4, 2024 · 3 comments

Comments

@favetelinguis
Copy link

I have the following EDN string from a Babashka task that fail to parse in parseedn:

(parseedn-read-str "{ remake {:doc \"Text\"
                    :task (do (run 'pm-build)
                    (run 'db-stop)
                    (run 'db-rm)
                    (run 'db-create))}}")

Running the following in Clojure works fine

(edn/read-string "{
  remake {:doc \"Text\"
          :task (do (run 'pm-build)
                    (run 'db-stop)
                    (run 'db-rm)
                    (run 'db-create))}}")
@vemv
Copy link
Member

vemv commented May 4, 2024

Thanks for the report!

I'll try to repro.

Is there anything special in this input? It wouldn't seem so at first glance

@favetelinguis
Copy link
Author

favetelinguis commented May 4, 2024

I dont think there is anything special. The code is more or less taken from the Babashka book on tasks.

@vemv
Copy link
Member

vemv commented May 4, 2024

It's the ' characters.

Let's see what we can do about them.

I don't see them in https://github.com/edn-format/edn though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants