figwheel-main

figwheel-main http://figwheel.org
bhauman 2020-07-14T03:24:36.026400Z

@tkjone I had no idea you were making those videos! Awesome job!

🍻 1
🙏 1
2020-07-14T13:27:01.028300Z

Ok, it might be that it's been too long since I've been working on my mac, but I don't recall compile reload cycles in figwheel to be ~32 seconds long... Really wanting to work out what's causing this as it's really disruptive...

2020-07-14T13:27:06.028400Z

[Figwheel] Compiling build dev to "resources/public/js/compiled/out/main.js"
[Figwheel] Successfully compiled build dev to "resources/public/js/compiled/out/main.js" in 31.289 seconds.
[Figwheel] Outputting main file: resources/public/js/compiled/out/main-auto-testing.js
[Figwheel] Compiling build dev to "resources/public/js/compiled/out/main.js"
[Figwheel] Successfully compiled build dev to "resources/public/js/compiled/out/main.js" in 32.904 seconds.
[Figwheel] Outputting main file: resources/public/js/compiled/out/main-auto-testing.js
[Figwheel] Compiling build dev to "resources/public/js/compiled/out/main.js"
[Figwheel] Successfully compiled build dev to "resources/public/js/compiled/out/main.js" in 31.106 seconds.
[Figwheel] Outputting main file: resources/public/js/compiled/out/main-auto-testing.js

dominicm 2020-07-14T13:45:54.029100Z

Macros are the first point of order usually

bhauman 2020-07-14T14:55:24.030Z

@folcon you can use cljs.main and see how long incremental compiles take, to see if this is figwheel specific

bhauman 2020-07-14T14:56:13.030200Z

but core async is notorious

2020-07-14T15:04:27.030700Z

Is there an easy way for me to get the command for cljs.main?

bhauman 2020-07-14T15:05:05.031400Z

yeah with -m figwheel.main -pc

bhauman 2020-07-14T15:05:18.031800Z

it will print out the compile options

bhauman 2020-07-14T15:05:29.032Z

with other stuff

bhauman 2020-07-14T15:06:20.033Z

remember you don’t need to get it up and running just see how long the initial compile is and then save a file or two and see how long the incremental compiles are

bhauman 2020-07-14T15:07:02.033500Z

preferably change and save the files that were causing the long re-compiles

bhauman 2020-07-14T15:07:35.033800Z

you don’t even need the bundle-cmd

bhauman 2020-07-14T15:08:22.034500Z

but you do need target :bundle and probably :main for sure

2020-07-14T16:37:19.035500Z

What if I'm calling figwheel from the repl? IE:

(require '[figwheel.main.api :as fig])
(fig/start "dev")
This doesn't seem to quite work?
(fig/start {:id "dev" :options {:main 'example.core :print-config true}})
That's the best I've got in terms of getting it working on windows at the moment >_<...