-
Notifications
You must be signed in to change notification settings - Fork 40
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
NPE when :infer-externs true and CLJS 1.9.908 #172
Comments
I have this issue too. |
I reproduced this today, I'll try to look into what's the problem tomorrow. |
It seems like a change in the Google Closure Compiler dependency from ClojureScript core caused this to happen. I've filed a JIRA ticket in CLJS as well. |
Have you tested this without Boot-cljs? I'm unable to reproduce this with only Cljs compiler: https://clojurescript.org/guides/quick-start |
I also get a NPE in advanced mode with boot-cljs :compiler-options {:asset-path "/js/teamsocial.out"
:parallel-build true
:infer-externs true} With boot-cljs |
Huh? NPE was fixed by changes in master? What the... |
That's what I see, yes. NPE with Sep 08, 2017 3:45:32 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /home/arch/daniel/.boot/cache/tmp/home/arch/daniel/Clojure/teamsocial/ae0/-yhf6r6/js/teamsocial.out/inferred_externs.js:24: WARNING - name goog is not defined in the externs.
goog.isArrayLike;
^^^^
Sep 08, 2017 3:45:32 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /home/arch/daniel/.boot/cache/tmp/home/arch/daniel/Clojure/teamsocial/ae0/-yhf6r6/js/teamsocial.out/inferred_externs.js:25: WARNING - name goog is not defined in the externs.
goog.string;
^^^^
Sep 08, 2017 3:45:32 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /home/arch/daniel/.boot/cache/tmp/home/arch/daniel/Clojure/teamsocial/ae0/-yhf6r6/js/teamsocial.out/inferred_externs.js:26: WARNING - name goog is not defined in the externs.
goog.string.StringBuffer;
^^^^
Sep 08, 2017 3:45:32 PM com.google.javascript.jscomp.LoggerErrorManager println
WARNING: /home/arch/daniel/.boot/cache/tmp/home/arch/daniel/Clojure/teamsocial/ae0/-yhf6r6/js/teamsocial.out/inferred_externs.js:27: WARNING - name goog is not defined in the externs.
goog.string.StringBuffer.prototype.append;
^^^^
Sep 08, 2017 3:45:32 PM com.google.javascript.jscomp.LoggerErrorManager printSummary
WARNING: 0 error(s), 4 warning(s)
|
I'm getting errors instead of just warnings when on 2.1.4-SNAPSHOT and infer-externs true:
|
@kanwei Those errors (##Inf) are not related to infer-externs: Cljs is broken with latest Clojure alpha: https://dev.clojure.org/jira/browse/CLJS-2352 |
Got it. So I switched back to alpha19, and now it does compile successfully with warnings, like danielsz's log:
|
2.1.4 is released, seems to work. |
Seems like 1.9.908 broke the :infer-externs flag, and causes an NPE when compiling. Anyone else having this issue?
The text was updated successfully, but these errors were encountered: