Fork me on GitHub
#figwheel-main
<
2022-01-10
>
pataprogramming21:01:02

Pulling my hair out again. Can't find anything about this error anywhere.

;;
;; ClojureScript REPL type: figwheel-main
;; ClojureScript REPL init form: (do (require 'figwheel.main) (figwheel.main/start :dev))
;;
[Figwheel] Validating figwheel-main.edn
[Figwheel] figwheel-main.edn is valid \(ツ)/
Execution error (NullPointerException) at com.google.javascript.jscomp.parsing.AutoValue_Config$Builder/setClosurePrimitiveNames (AutoValue_Config.java:197).
Null closurePrimitiveNames

pataprogramming21:01:08

This appears to be an Emacs issue. This was happening with a project so I dropped back to a minimal figwheel-main project, and am still getting the error.

pataprogramming21:01:28

I've axed everything in .lein/profiles.clj, so I know that's not the problem this time.

pataprogramming21:01:09

I say it appears to be an emacs issue because there's no error displayed when starting from the CLI with lein fig:build -- --build dev --repl

pataprogramming21:01:59

But when launching that way, the browser hangs when attempting to go to localhost:9500 in the browser. So there may be something else going on.

pataprogramming21:01:50

I'm at the end of my tether, here, as everything was working swimmingly before I left for vacation, and I didn't change anything meanwhile. So it's something to do with my setup, but everything I've tried so far has been a dead end.

Jan K22:01:48

Maybe the clojurescript version is too recent and incompatible, if the demo works try downgrading to the version it uses

pataprogramming23:01:52

Thanks, @jkr.sw, I'll give it a shot

pataprogramming23:01:27

Yep, the demo project works, and downgrading ClojureScript fixes the compiler issue. Thanks.

pataprogramming23:01:30

There's another issue to chase down, but figwheel is building and the browser REPL is connecting again.