parseedn icon indicating copy to clipboard operation
parseedn copied to clipboard

Parse error for valid EDN

Open favetelinguis opened this issue 1 year ago • 3 comments

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))}}")

favetelinguis avatar May 04 '24 06:05 favetelinguis

Thanks for the report!

I'll try to repro.

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

vemv avatar May 04 '24 09:05 vemv

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

favetelinguis avatar May 04 '24 15:05 favetelinguis

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!

vemv avatar May 04 '24 15:05 vemv