figwheel-main

pataprogramming 2022-01-10T21:17:02.005Z

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

pataprogramming 2022-01-10T21:18:00.005500Z

pataprogramming 2022-01-10T21:19:08.005900Z

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.

pataprogramming 2022-01-10T21:19:28.006100Z

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

pataprogramming 2022-01-10T21:20:55.006300Z

pataprogramming 2022-01-10T21:22:12.006700Z

pataprogramming 2022-01-10T21:22:28.007100Z

pataprogramming 2022-01-10T21:26:09.007500Z

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

pataprogramming 2022-01-10T21:26:59.007700Z

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.

pataprogramming 2022-01-10T21:27:50.007900Z

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 K 2022-01-10T22:24:54.008900Z

@pataprogramming Try the figwheel demo project https://github.com/bhauman/flappy-bird-demo-new

Jan K 2022-01-10T22:25:48.009900Z

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

pataprogramming 2022-01-10T23:19:52.010200Z

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

pataprogramming 2022-01-10T23:32:27.011100Z

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

pataprogramming 2022-01-10T23:33:30.012300Z

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