figwheel-main

figwheel-main http://figwheel.org
lread 2021-05-29T15:43:13.005900Z

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)  
[Figwheel:SEVERE] 
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.

athomasoriginal 2021-05-29T18:15:18.006600Z

Are you using latest figwheel-main?

lread 2021-05-29T18:56:26.007300Z

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

lread 2021-05-29T18:58:11.007600Z

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

lread 2021-05-29T19:00:57.009Z

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.

lread 2021-05-29T19:08:56.010Z

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

lread 2021-05-29T19:09:16.010400Z

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

lread 2021-05-29T19:44:14.016400Z

Ok after a little http://grep.app, I did find another project: https://github.com/active-group/reacl. 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)  
[Figwheel:SEVERE] 
...
If I downgrade ClojureScript to 1.10.844, and lein clean lein fig, it works.

lread 2021-05-29T21:28:25.017200Z

Raised an https://github.com/bhauman/figwheel-main/issues/295.