[CLJS-737] tool.reader can't handle white-space Created: 30/Dec/13 Updated: 09/Jan/14 Resolved: 09/Jan/14
MBP running lion 10.7.5
|Attachments:||0001-Bump-tools.reader-version-to-0.8.3.patch Screen Shot 2013-12-30 at 4.40.47 PM.png Screen Shot 2013-12-30 at 4.41.14 PM.png Screen Shot 2013-12-30 at 4.44.42 PM.png|
I believe the tool.reader (may some other part of ClojureScript) cannot handle a file with a large amount of white space. I have a cljx generated file with nothing but a namespace and about 300-400 lines of white-space. The entire file is simply a namespace and whitespace (file attached shows white-space in red). I get a stackoverflow error arising mainly from clojure.tools.reader$read.invoke(reader.clj:727). I have screenshots of the beginning and end of the stackoverflow attached. If I remove the whitespace, ClojureScript will compile, which leads me to believe it is the white space that is the cause of the issue.
|Comment by Nicola Mometto [ 30/Dec/13 5:13 PM ]|
Updating to tools.reader >=0.8.1 should fix this issue.
|Comment by Nicola Mometto [ 30/Dec/13 5:21 PM ]|
Attached a patch that bumps tools.reader to the lastest version (0.8.3)
Can you apply this and verify that it solves the issue?
Remeber you'll have to clean the lib/ folder form old tools.reader jars.
|Comment by David Nolen [ 09/Jan/14 5:17 PM ]|