Thursday 15 September 2011

Inscrutable clojure error messages

Clojure error messages are sometimes befuddling. Hope these help if you are stuck..


Exception: clojure.lang.Compiler$CompilerException: java.lang.Exception: EOF while reading (core.clj:78) 

This one is common enough..there is a parentheses missing.

Exception in thread "main" java.lang.Exception: Invalid token: /input (core.clj:64)

I struggled with this until I figured out that the parser complains about the next string declaration, if the previous string is missing trailing doublequotes.

No comments: