Set the default ClojureScript compiler version to r1535 #155

Closed
emezeske opened this Issue Nov 9, 2012 · 3 comments

Projects

None yet

2 participants

@emezeske
Owner
emezeske commented Nov 9, 2012

No description provided.

@emezeske emezeske closed this in 6ea7fa3 Nov 13, 2012
@emezeske emezeske reopened this Nov 13, 2012
Owner

Unfortunately, with the new ClojureScript release, this error is being thrown when trying to compile the advanced example project with lein cljsbuild once:

Compiling ClojureScript.
Compiling "resources/public/js/main-debug.js" from "src-cljs"...
Compiling "resources/public/js/main-debug.js" failed.
java.lang.NullPointerException: 
             Compiler.java:945 com.google.javascript.jscomp.Compiler.newTracer
             Compiler.java:588 com.google.javascript.jscomp.Compiler.compile
              (Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0
NativeMethodAccessorImpl.java:39 sun.reflect.NativeMethodAccessorImpl.invoke
DelegatingMethodAccessorImpl.java:25 sun.reflect.DelegatingMethodAccessorImpl.invoke
               Method.java:597 java.lang.reflect.Method.invoke
             Reflector.java:93 clojure.lang.Reflector.invokeMatchingMethod
             Reflector.java:28 clojure.lang.Reflector.invokeInstanceMethod
               closure.clj:684 cljs.closure/optimize
               RestFn.java:139 clojure.lang.RestFn.applyTo
                  core.clj:603 clojure.core/apply
               closure.clj:911 cljs.closure/build
               compiler.clj:48 cljsbuild.compiler/compile-cljs[fn]
               compiler.clj:47 cljsbuild.compiler/compile-cljs
              compiler.clj:120 cljsbuild.compiler/run-compiler
              NO_SOURCE_FILE:1 user/eval1900[fn]
               LazySeq.java:42 clojure.lang.LazySeq.sval
               LazySeq.java:60 clojure.lang.LazySeq.seq
                   RT.java:473 clojure.lang.RT.seq
                  core.clj:133 clojure.core/seq
                 core.clj:2725 clojure.core/dorun
                 core.clj:2741 clojure.core/doall
              NO_SOURCE_FILE:1 user/eval1900
            Compiler.java:6511 clojure.lang.Compiler.eval
            Compiler.java:6501 clojure.lang.Compiler.eval
            Compiler.java:6477 clojure.lang.Compiler.eval
                 core.clj:2797 clojure.core/eval
                  main.clj:297 clojure.main/eval-opt
                  main.clj:316 clojure.main/initialize
                  main.clj:349 clojure.main/null-opt
                  main.clj:427 clojure.main/main
               RestFn.java:421 clojure.lang.RestFn.invoke
                  Var.java:419 clojure.lang.Var.invoke
                  AFn.java:163 clojure.lang.AFn.applyToHelper
                  Var.java:532 clojure.lang.Var.applyTo
                  main.java:37 clojure.main.main
bendlas commented Nov 13, 2012

Reiterating my findings from https://groups.google.com/d/topic/clojure/kzzBoCZiAx0/discussion

The way I reconstructed the error:

The real issue here is, that under cljsbuild there is this bogus entry in sources, see cljs.closure/optimize, which should probably be a separate ticket. The example can be fixed by adding the third party lib. I haven't tried it on the cljsbuild example, but it worked for my project where I saw the exact same stack trace.

Owner

Fixed by #162 .

@emezeske emezeske closed this Dec 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment