Fork me on GitHub
#figwheel-main
<
2019-08-27
>
danieroux07:08:46

How can I pause figwheel from watching? I would like to use the repl-env for a bit of RDD, and then switch back to figwheel auto-watching and compiling. Right now I stop my editor from automatically saving, which I don’t like.

danieroux07:08:17

I tried (figwheel.main.watching/remove-watch! [:figwheel.main.api/autobuild build-id]) and my JVM ran out of heapspace, for some reason.

dimovich20:08:58

you've got the key name wrong, it should be :figwheel.main/autobuild, instead of the :figwheel.main.api/autobuild and instead of build-id it should be sth like "dev". You can investigate by checkout out figwheel.main.watching/*watcher* to see the correct id.

dimovich20:08:38

the fact that JVM ran out of heapspace, means there is a bug in figwheel.main.watching, and should be investigated.

danieroux13:08:12

@dominicm I’ve been down that path, and ultimately, start means to “watch and recompile”, which is what I want to suspend, sometimes.

dominicm13:08:41

What about stop?

danieroux14:08:24

That does this:

[Figwheel] Stopping the Figwheel server
[Figwheel] Remove all repl listeners
… and then I can eval from the REPL anymore 😕

dominicm14:08:11

Hmm, yeah. I could have sworn there was a stop-builders function at some point.

dimovich20:08:35

@danie when figwheel-main starts, there is this message:

dimovich20:08:08

to stop a build run (stop-builds "dev") -- if your build name is dev, otherwise use whatever your build id is.

dimovich20:08:29

to start it back run (start-builds "dev")

dominicm21:08:52

That's the one!