Symbols starting with characters like "+" are not resolved #16

kremers opened this Issue Apr 15, 2012 · 3 comments


None yet

3 participants

kremers commented Apr 15, 2012

Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: +settings in this context, compiling:(NO_SOURCE_PATH:1)

I tried "lein slamhound src/cblog/admin.clj" in the project:


Looks like I can solve this by just adding + to the regexes in missing-sym-name in regrow.clj


For some reason when I change the first regex to this, (re-find #"Unable to resolve \w+: ([\+-_\w\$\?!\*\>\<]+)" msg), [note, I just added \+ to the front] I'm seeing my test pass, but seeing failures for tests of the :import clause. It seems like this causes it to match the comma after the classname, so it matches Date, instead of Date, which it then cannot match to any known classes.

This is confusing to me. Any thoughts?


Moving - from the front of the regex causes it to be treated as a range rather than a literal - character.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment