Fork me on GitHub

Is anybody having any issues with the new release of ClojureScript - v1.10.866? I use figwheel main with :auto-testing to watch tests in my browser for rewrite-clj and it is failing.

2021-05-29 11:38:13.987:INFO::main: Logging initialized @3794ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel:WARNING] Making target directory "target" and re-adding it to the classpath (this only needs to be done when the target directory doesn't exist)
[Figwheel] Compiling build fig to "target/public/cljs-out/fig-main.js"
[Figwheel] Failed to compile build fig in 0.22 seconds.
[Figwheel:WARNING] Compile Exception: Assert failed: Namespace rewrite-clj.node-test does not exist
(ana-api/find-ns ns)  
Things work fine with the previous release of ClojureScript - v1.10.844. Thought I’d ask here first before digging in to see what’s up.


Are you using latest figwheel-main?


Thanks for asking @tkjone! I’m using v0.2.13, should I be using a SNAPSHOT version?


Actually I don’t think there are commits after v0.2.13.


My setup might be a bit unusual in that I only use figwheel main to run tests (I’ve no real app), but it has worked for fine for a long while.


I hunt around for another project that uses figwheel main and :auto-testing and see if I can reproduce the issue.


(not saying the issue is related to :auto-testing just looking for a similar project)


Ok after a little, I did find another project: The tests are launched under figwheel via lein fig, - which launches a browser window and runs tests as expected. (ClojureScript :provided, and figwheel-main 0.2.0) If I upgrade to figwheel-main 0.2.13,`lein clean` lein fig still works. If I force ClojureScript (removing :provided) to 1.10.866, I get a failure very similar to mine:

2021-05-29 15:38:32.110:INFO::main: Logging initialized @3920ms to org.eclipse.jetty.util.log.StdErrLog
[Figwheel] Compiling build dev to "target/public/cljs-out/dev-main.js"
[Figwheel] Failed to compile build dev in 0.117 seconds.
[Figwheel:WARNING] Compile Exception: Assert failed: Namespace reacl2.test.core-test does not exist
(ana-api/find-ns ns)  
If I downgrade ClojureScript to 1.10.844, and lein clean lein fig, it works.