figwheel

general discussion about figwheel, specific discussions in #figwheel-main and #lein-figwheel
grumplet 2019-06-25T10:53:20.003400Z

I’m cahsing a nasty problem that is preventing me upgrading to clojurescript 1.10. In the figwheel REPL I see:

grumplet 2019-06-25T10:53:22.003600Z

`

grumplet 2019-06-25T10:54:44.004100Z

Starting clojure.main REPL... /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/java Figwheel: Starting server at http://0.0.0.0:5449 Figwheel: Watching build - dev Compiling build :dev to “resources/public/js/compiled/predict3.js” from [“src/cljs” “src/cljc”]... Successfully compiled build :dev to “resources/public/js/compiled/predict3.js” in 1.055 seconds.```

grumplet 2019-06-25T10:55:26.004500Z

So compilation works and the program runs

grumplet 2019-06-25T10:57:28.005800Z

But later, if I try to load any namespace rooted at ‘predict3’ it fails but only under cljs 1.10

grumplet 2019-06-25T10:58:00.006300Z

(require '[predict3.components.primitives])
----  Exception    ----

  predict3.components.primitives does not exist

----  Exception Stack Trace  ----

clojure.lang.ExceptionInfo: predict3.components.primitives does not exist
#:cljs.repl{:error :invalid-ns}
 at cljs.repl$ns__GT_input.invokeStatic (repl.cljc:204)
    cljs.repl$ns__GT_input.invoke (repl.cljc:199)
    cljs.repl$load_namespace.invokeStatic (repl.cljc:243)
    cljs.repl$load_namespace.invoke (repl.cljc:234)
    cljs.repl$load_dependencies$fn__6589.invoke (repl.cljc:260)

grumplet 2019-06-25T11:01:58.007Z

Full stack trace here: https://gist.github.com/gmp26/45630114a537f3cea2323b01bbfac150

grumplet 2019-06-25T11:02:50.007800Z

Error occurs in figwheel REPL running in cursive.

grumplet 2019-06-25T11:03:36.008300Z

Downgrade to cljs 1.9.946 fixes it

grumplet 2019-06-25T11:04:33.009400Z

Using lein figwheel instead of cursive and figwheel-sidecar 0.5.18 also fixes it.

grumplet 2019-06-25T11:05:18.010Z

:aot-cache false and :validate-config false do not help

grumplet 2019-06-25T11:12:12.010500Z

Changing to a simlar project with similar project.clj fixes it.

grumplet 2019-06-25T11:14:49.013Z

Do let me know if you have hit something similar - I’m struggling to localise the issue.