Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Printing out unbalanced parens causes NullPointerException #19

Open
yayitswei opened this issue Jan 25, 2013 · 5 comments
Open

Printing out unbalanced parens causes NullPointerException #19

yayitswei opened this issue Jan 25, 2013 · 5 comments

Comments

@yayitswei
Copy link

See emezeske/lein-cljsbuild#178 (comment)

Something like this

(on $body :click :#a nil
    (fn [e]
      (log "test";;)
      )
    )

would trigger it.

@emezeske
Copy link

I should be able to run a debug build of lein-cljsbuild this weekend to capture the exact stack trace that the ClojureScript compiler is throwing in the above instance. It seems that something in the trace is giving clj-stacktrace some trouble.

@byw
Copy link

byw commented Mar 30, 2013

I was wondering if there's any progress/workaround for this issue. This essentially makes lein-cljsbuild unusable for me in auto mode, as it crashes every time there's a compile error.

Though I get the impression that not everyone sees this exception.

@byw
Copy link

byw commented Mar 30, 2013

I found a workaround by cloning clj-stacktrace as a checkout dependency under my project. (ie. clone into /checkouts/ )

Looking at the dependencies, cljsbuild 0.3.0 depends on clj-stacktrace 0.2.5, which is what shows in HEAD. Perhaps there are commits that haven't been published?

@emezeske
Copy link

Weird, from what I can tell, 0.2.5 contains the latest commits (in fact, changing the version number to 0.2.5 was itself the most recent commit).

Regarding why more people are not complaining about this: I think a lot of people use Paredit or something equivalent, so it's rather difficult to ever save a ClojureScript file with unbalanced parenthesis.

@yayitswei
Copy link
Author

I use Paredit myself. In the relatively rare case when I save an unbalanced file, this bug is somewhat annoying, especially if I don't notice that cljs-build has crashed.

@yayitswei yayitswei reopened this Mar 31, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants