ooh I tried dirac on regular chrome today and it worked 😄
nice!
cool!
I'm starting to get curious about starting figwheel from the repl
but it's much more of a pain to lein repl
and wait for it to start and then type something in
and then there's the issue of it not merging in my dirac lein profile 😞
could be possible to automate it with :repl-options {:init …}
😮 didn't know that was a thing
wait of course it's at hing
see dirac docs: https://github.com/binaryage/dirac#start-dirac-agent
herp derp
also figwheel has pretty heavy documentation about booting figwheel from within nREPL
didn’t try it myself
https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl
see this: https://github.com/binaryage/dirac/blob/master/src/agent/dirac/agent_impl.clj#L132-L133 you might need to wrap your figwheel init code in future and execute it later
you would need to do the same trick with figwheel I guess
hmm
do you know how I might be able to go about putting this in a script?
sorry if these are more leiningen questions
I tried putting this stuff in a project namespace and requiring it in the init, but I don't think the project namespaces are available in the init stage
you have to put them into :dev or :repl profile, I think
lein repl has different deps than your project
not sure how this works exactly, still open problem with dirac as well: https://github.com/binaryage/dirac/issues/8
you are ProjectFrank at github?
yes
it's not a dependency problem i'm worried about
I'm trying to put the commands to start figwheel in a project namespace, but I can't seem to require the project namespace in the :init
are you sure that your project namespace is on the classpath of the repl process?
so if I try to put (require myapp.core)
in the init, it will error
hm
there are two processes, repl process and your app process, both can have different sets of deps (classpaths), if I understand it correctly
:init runs in the repl process
try to debug print classpath inside the :init
btw. what is the error? complaining about missing class or something else?
ah wait
I think I may have done something silly
I got it working!
my ide was out of sync with the filesystem
so I was editing the wrong file
so my ns declaration was weird
hmm
thanks for the tip with the future btw
was definitely necessary to get the repl working with figwheel