Fork me on GitHub
#shadow-cljs
<
2019-12-26
>
Philipp Siegmantel12:12:16

Hello, I'm getting an NullPointerException when I try to compile my tests. My build config is simply

:test {:target :karma
                 :test-dir "resources/public/js/karma"}
Same thing happens with :browser-test and :node-test. Stack trace:
NullPointerException: 
	shadow.build.targets.karma/configure (karma.clj:23)
	shadow.build.targets.karma/configure (karma.clj:18)
	shadow.build.targets.karma/process (karma.clj:115)
	shadow.build.targets.karma/process (karma.clj:111)
	clojure.lang.Var.invoke (Var.java:384)
	shadow.build/process-stage/fn--14115 (build.clj:148)
	shadow.build/process-stage (build.clj:145)
	shadow.build/process-stage (build.clj:137)
	shadow.build/configure (build.clj:358)
	shadow.build/configure (build.clj:261)
	shadow.cljs.devtools.api/compile* (api.clj:311)
	shadow.cljs.devtools.api/compile* (api.clj:308)
	shadow.cljs.devtools.cli/do-build-command (cli.clj:35)
	shadow.cljs.devtools.cli/do-build-command (cli.clj:26)
	shadow.cljs.devtools.cli/do-build-commands (cli.clj:51)
	shadow.cljs.devtools.cli/do-build-commands (cli.clj:40)
	shadow.cljs.devtools.cli/main/body-fn--16982--auto----17573 (cli.clj:168)
	shadow.cljs.devtools.cli/main (cli.clj:167)
	shadow.cljs.devtools.cli/main (cli.clj:134)
	clojure.core/apply (core.clj:669)
	clojure.core/apply (core.clj:660)
	shadow.cljs.devtools.cli/-main (cli.clj:221)
	shadow.cljs.devtools.cli/-main (cli.clj:219)
	clojure.lang.Var.invoke (Var.java:393)
	user/eval152 (form-init10054527494778132590.clj:1)
	user/eval152 (form-init10054527494778132590.clj:1)
	clojure.lang.Compiler.eval (Compiler.java:7177)
	clojure.lang.Compiler.eval (Compiler.java:7167)
	clojure.lang.Compiler.load (Compiler.java:7636)
	clojure.lang.Compiler.loadFile (Compiler.java:7574)
	clojure.main/load-script (main.clj:475)
	clojure.main/init-opt (main.clj:477)
	clojure.main/init-opt (main.clj:477)
	clojure.main/initialize (main.clj:508)
	clojure.main/null-opt (main.clj:542)
	clojure.main/null-opt (main.clj:539)
	clojure.main/main (main.clj:664)
	clojure.main/main (main.clj:616)
	clojure.lang.Var.applyTo (Var.java:705)
	clojure.main.main (main.java:40)
Googling didn't help much. Is this a known issue or should I file a bug report?

aisamu14:12:53

Just to be sure, did you follow https://shadow-cljs.github.io/docs/UsersGuide.html#target-karma? (Install karma, create a karma.conf.js, etc)

Philipp Siegmantel14:12:40

I used the re-frame template and just reinstalled karma. Still get the NPE 😞

aisamu15:12:37

Do you have an url for the template? (And the exact options you've used, if applicable)

Philipp Siegmantel07:12:30

Thanks the npe went away woth an output-to argument.

👍 1