Fork me on GitHub
#figwheel-main
<
2021-05-29
>
lread15:05:13

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.

athomasoriginal18:05:18

Are you using latest figwheel-main?

lread18:05:26

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

lread18:05:11

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

lread19:05:57

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.

lread19:05:56

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

lread19:05:16

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

lread19:05:14

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.