Compiler error on :"

Description

(str "this will break" :"the parser")
This simple form (note the misplaced ':' causes the compiler to barf with the following error
Caused by: clojure.lang.ExceptionInfo: EOF while reading string

no mention of the ':' and in larger blocks of code the unmatched brackets several lines away is flagged

in clojure the error is
RuntimeException Invalid token: : clojure.lang.Util.runtimeException (Util.java:221)
RuntimeException Unmatched delimiter: ) clojure.lang.Util.runtimeException (Util.java:221)

Note it mentions the errant ':'

Environment

Ubuntu 14.04
org.clojure/clojurescript "0.0-2277"

Activity

Show:
Stuart Mitchell
October 23, 2014, 5:04 AM

I would like the error reporting from the compiler improved in this case, so that it mentions that the problem is caused by the ':'.

Nicola Mometto
October 23, 2014, 1:53 PM

This appears to be an issue caused by tools.reader, I'm working on a fix for it

Nicola Mometto
October 23, 2014, 3:17 PM

I just pushed a 0.8.10 release of tools.reader that fixes this issue

David Nolen
November 5, 2014, 12:33 PM

Assignee

David Nolen

Reporter

Stuart Mitchell

Labels

Approval

None

Patch

None

Priority

Major
Configure