Fork me on GitHub
#dirac
<
2016-03-17
>
frank15:03:42

ooh I tried dirac on regular chrome today and it worked 😄

frank17:03:51

I'm starting to get curious about starting figwheel from the repl

frank17:03:14

but it's much more of a pain to lein repl and wait for it to start and then type something in

frank17:03:27

and then there's the issue of it not merging in my dirac lein profile 😞

darwin17:03:05

could be possible to automate it with :repl-options {:init …}

frank17:03:24

😮 didn't know that was a thing

frank17:03:37

wait of course it's at hing

frank17:03:41

herp derp

darwin17:03:08

also figwheel has pretty heavy documentation about booting figwheel from within nREPL

darwin17:03:17

didn’t try it myself

darwin17:03:53

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

darwin17:03:37

you would need to do the same trick with figwheel I guess

frank19:03:37

do you know how I might be able to go about putting this in a script?

frank19:03:49

sorry if these are more leiningen questions

frank19:03:37

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

darwin19:03:09

you have to put them into :dev or :repl profile, I think

darwin19:03:20

lein repl has different deps than your project

darwin19:03:17

not sure how this works exactly, still open problem with dirac as well: https://github.com/binaryage/dirac/issues/8

darwin19:03:41

you are ProjectFrank at github?

frank19:03:08

it's not a dependency problem i'm worried about

frank19:03:34

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

darwin19:03:12

are you sure that your project namespace is on the classpath of the repl process?

frank19:03:31

so if I try to put (require myapp.core) in the init, it will error

darwin19:03:48

there are two processes, repl process and your app process, both can have different sets of deps (classpaths), if I understand it correctly

darwin19:03:04

:init runs in the repl process

darwin19:03:35

try to debug print classpath inside the :init

darwin19:03:58

btw. what is the error? complaining about missing class or something else?

frank19:03:41

I think I may have done something silly

frank19:03:44

I got it working!

frank19:03:00

my ide was out of sync with the filesystem

frank19:03:04

so I was editing the wrong file

frank19:03:15

so my ns declaration was weird

frank20:03:55

thanks for the tip with the future btw

frank20:03:08

was definitely necessary to get the repl working with figwheel