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.
I tried (figwheel.main.watching/remove-watch! [:figwheel.main.api/autobuild build-id])
and my JVM ran out of heapspace, for some reason.
I think https://figwheel.org/docs/scripting_api.html#repl-api-usage works from the repl
@dominicm I’ve been down that path, and ultimately, start
means to “watch and recompile”, which is what I want to suspend, sometimes.
What about stop?
That does this:
[Figwheel] Stopping the Figwheel server
[Figwheel] Remove all repl listeners
… and then I can eval from the REPL anymore 😕Hmm, yeah. I could have sworn there was a stop-builders function at some point.
@danie when figwheel-main starts, there is this message:
to stop a build run (stop-builds "dev")
-- if your build name is dev, otherwise use whatever your build id is.
to start it back run (start-builds "dev")
@danie take a look at this: https://github.com/bhauman/figwheel-main/blob/master/src/figwheel/main.cljc#L135
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.
the fact that JVM ran out of heapspace, means there is a bug in figwheel.main.watching
, and should be investigated.
That's the one!