emezeske/lein-cljsbuild — Issue #4: Compilation fails abruptly
Author: kumarshantanu
Created: 2012-01-10 05:58:15+00:00
State: open

While lein-cljsbuild worked for me earlier, now in a different repository I get the following error for the project.clj snippet below:

```clojure
:cljsbuild {
:source-path "src-cljs"
; Each entry in the :crossovers vector describes a Clojure namespace
; that is meant to be used with the ClojureScript code as well.
; The files that make up this namespace will be automatically copied
; into the ClojureScript source path whenever they are modified.
:compiler {
:output-file "war/javascripts/main.js"
:optimizations :whitespace
:pretty-print true}}
```

```
Compiler started.
Exception in thread "main" java.lang.NullPointerException
Compiling main.js from src-cljs...	at java.io.File.(File.java:360)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at clojure.lang.Reflector.invokeConstructor(Reflector.java:183)
at fs$as_file.invoke(fs.clj:19)
at fs$mkdirs.invoke(fs.clj:121)
at cljsbuild.core$compile_cljs.invoke(core.clj:32)
at cljsbuild.core$run_compiler.invoke(core.clj:121)
at user$eval1925.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6465)
at clojure.lang.Compiler.eval(Compiler.java:6455)
at clojure.lang.Compiler.eval(Compiler.java:6431)
at clojure.core$eval.invoke(core.clj:2795)
at clojure.main$eval_opt.invoke(main.clj:296)
at clojure.main$initialize.invoke(main.clj:315)
at clojure.main$null_opt.invoke(main.clj:348)
at clojure.main$main.doInvoke(main.clj:426)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:405)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:518)
at clojure.main.main(main.java:37)
```