if i use figwheel-system to start my figwheel then run (figwheel-sidecar.repl-api/repl-env)
it returns
Figwheel System not initialized.
Please start it with figwheel-sidecar.repl-api/start-figwheel!
nil
however, it's definitely running since my browser is reloading and i see compilation in my repl. something out of sync?i can convince figwheel that is is running if I:
(alter-var-root
#'figwheel-sidecar.repl-api/*repl-api-system* (constantly
{:figwheel-system (-> sys :figwheel)}))
from this I gather figwheel-system is not meant to be used directly?(`sys` is my app's system, of which :figwheel
is one of the components)
seems like figwheel-system should be correctly resetting #'figwheel-sidecar.repl-api/*repl-api-system*
on its own. simple omission or are there problems?
@devth it's how you are starting figwheel that is the problem
if you are using the repl-api you need to start figwheel with the repl-api
ah. i'm just adding (component/using (figwheel-system f/figwheel-config) [:server])
to my system-map
then (go)
in the repl starts the whole system.
yeah so now you want to start a repl
and a repl needs the figwheel system
ok. i can hack around it for now. i'll think about using start-figwheel!
instead too.
there is a figwheel-sidecar.system/start-figwheel-repl fn
You'll have to get the figwheel system from your system map
ah, nice.