Fork me on GitHub
#figwheel-main
<
2020-08-19
>
grumplet07:08:37

OK, so the main issues I had with figwheel-main + deps + webpack + test combination working were all minor configuration issues. They were however difficult and time consuming to overcome because of the frequent need to clear the .cpcache and or the target directory in order to regain sane results. I’m not sure why that was. It’s also hard to keep VSCode/Calva in-line evaluation in a working state. That’s the job for today. Conclusion to date is that shadow-cljs was much easier to set up though the cljs-core/deps route felt lower-level and so more understandable.

grumplet07:08:01

One insight gained in the process was that --print-config is very useful when chasing :output-to and :final-output-to issues.

grumplet07:08:14

clojure -m figwheel.main -pc -b dev -r

grumplet07:08:22

and the like.

grumplet08:08:26

Another note: I was using cljs-ajax and hit the issue fixed by @bhauman in https://github.com/JulianBirch/cljs-ajax/pull/248. In the nick of time, that was recently merged into cljs-ajax 0.8.1 - so you definitely need to update to that version if you use it (e.g. through reframe)

grumplet10:08:04

Once you have a working webpack build you can then reconnect with Calva jack-in selecting ONLY ‘fig’ initially. Wait for the build to complete, and THEN select the build - ‘dev’ or ‘test’. This should load a working build using the Calva repl rather than the figwheel rebl-readline and allow you to use inline evaluation in the editor.

folcon15:08:43

@grumplet So you did manage to get a test setup working then?

dominicm19:08:42

@grumplet knowing what config you changed would be useful!