Fork me on GitHub
#figwheel-main
<
2020-07-14
>
bhauman03:07:36

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

🍻 3
🙏 3
folcon13:07:01

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...

folcon13:07:06

[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

dominicm13:07:54

Macros are the first point of order usually

bhauman14:07:24

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

bhauman14:07:13

but core async is notorious

folcon15:07:27

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

bhauman15:07:05

yeah with -m figwheel.main -pc

bhauman15:07:18

it will print out the compile options

bhauman15:07:29

with other stuff

bhauman15:07:20

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

bhauman15:07:02

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

bhauman15:07:35

you don’t even need the bundle-cmd

bhauman15:07:22

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

folcon16:07:19

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 >_<...