emezeske/lein-cljsbuild — Issue #48: NullPointerException !
Author: humasect
Created: 2012-03-06 00:49:22+00:00
State: open

Hmm, I wonder how come?

(defproject test "0.1.1"
:resources-path "war"
:dependencies [[org.clojure/clojure "1.3.0"]
[org.clojure/clojurescript "0.0-993"]]
:plugins [[lein-cljsbuild "0.1.2"]]
:hooks [leiningen.cljsbuild]
:cljsbuild {:builds [{:source-path "src/novapilot"
;; The standard ClojureScript compiler options:
;; (See the ClojureScript compiler documentation for details.)
:compiler {:output-to "war/novapilot/main.js" ; default: main.js in current directory
:optimizations :whitespace
:foreign-libs [{:file "war/js/cocos.js"
:provides ["cocos"]}
{:file "war/js/jah.js"
:provides "jah"}]
:pretty-print true}
:jar true} ... etc ...

Then, "leon cljsbuild once" (or auto)

Compiling war/test/main.js from src/test...
WARNING: The form (. this toString) is no longer a property access. Maybe you meant (. this -toString) instead?
WARNING: The form (. this toString) is no longer a property access. Maybe you meant (. this -toString) instead?
WARNING: The form (. (js-keys hashobj) sort) is no longer a property access. Maybe you meant (. (js-keys hashobj) -sort) instead?
Failed!
java.lang.NullPointerException:
Compiler.java:869 com.google.javascript.jscomp.Compiler.newTracer
Compiler.java:516 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:92 clojure.lang.Reflector.invokeMatchingMethod
Reflector.java:30 clojure.lang.Reflector.invokeInstanceMethod
closure.clj:661 cljs.closure/optimize
RestFn.java:139 clojure.lang.RestFn.applyTo
core.clj:602 clojure.core/apply
closure.clj:869 cljs.closure/build
compiler.clj:36 cljsbuild.compiler/compile-cljs
compiler.clj:53 cljsbuild.compiler/run-compiler
NO_SOURCE_FILE:1 user/eval2122[fn]
util.clj:31 cljsbuild.util/in-threads[fn]
core.clj:1817 clojure.core/binding-conveyor-fn[fn]
AFn.java:18 clojure.lang.AFn.call
FutureTask.java:303 java.util.concurrent.FutureTask$Sync.innerRun
FutureTask.java:138 java.util.concurrent.FutureTask.run
ThreadPoolExecutor.java:886 java.util.concurrent.ThreadPoolExecutor$Worker.runTask
ThreadPoolExecutor.java:908 java.util.concurrent.ThreadPoolExecutor$Worker.run
Thread.java:680 java.lang.Thread.run