dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
richiardiandrea 2017-06-25T19:48:35.811311Z

Documented here: https://github.com/boot-clj/boot-figreload#dirac

2017-06-25T19:50:27.817124Z

“enabling REPL evaluation in-browser on top of Figwheel’s reloading” does this mean that you use Figwheel’s compiler state for REPL evaluations?

2017-06-25T19:51:24.820009Z

if not, this sounds quite misleading to my ears 🙂

richiardiandrea 2017-06-25T19:51:31.820403Z

Well maybe it is misleading

richiardiandrea 2017-06-25T19:52:20.822897Z

What that does is to trigger autoreload and all the niceties from figwheel

richiardiandrea 2017-06-25T19:52:50.824294Z

Does dirac keeps a separate compiler state? If so then I need to change that

2017-06-25T19:53:00.824875Z

is figwheel sidecar running in the same JVM as nREPL server in your setup?

richiardiandrea 2017-06-25T19:53:06.825210Z

Yes

richiardiandrea 2017-06-25T19:53:38.826818Z

The dirac nrepl server runs from the boot fileset/environment

richiardiandrea 2017-06-25T19:53:48.827316Z

Actually is not dirac's

richiardiandrea 2017-06-25T19:54:04.828165Z

It is an nrepl server with figwheel sidecar indeed

2017-06-25T19:54:25.829260Z

ok, what do you see when you run (dirac :status) ?

2017-06-25T19:54:37.829798Z

in browser REPL

richiardiandrea 2017-06-25T19:54:50.830521Z

Uhm need to run now but I will try that when I come back

richiardiandrea 2017-06-25T19:54:59.831058Z

What should I see?

2017-06-25T19:55:30.832616Z

I don’t rememeber exactly, but there is a description about dirac REPL session

2017-06-25T19:55:49.833626Z

and some commands to list/switch compiler states if more avail

2017-06-25T19:55:58.834103Z

including figwheel’s

richiardiandrea 2017-06-25T19:56:08.834613Z

Ok coo will report back

2017-06-25T19:58:38.842473Z

see the screenshot

richiardiandrea 2017-06-25T20:01:22.852849Z

Uhm maybe I don't start the sidecar loop..because boot has its own watch actually

richiardiandrea 2017-06-25T20:02:05.855383Z

So I might still need an additional step - pass state to dirac

richiardiandrea 2017-06-25T20:02:12.855670Z

Cljs state

2017-06-25T20:02:41.857246Z

I will look into your boot project later today, will investigate the situation

richiardiandrea 2017-06-25T20:02:51.857692Z

:k running for real now 😀😀

2017-06-25T20:02:59.858109Z

this would be pretty advanced setup, but cool one 🙂

richiardiandrea 2017-06-25T20:03:42.860337Z

Yeah it is doable, I expose a websocket server so I just need to emulate what figwheel sidecar does

richiardiandrea 2017-06-25T20:04:00.861261Z

And i am already doing it or the client hud would not work

2017-06-25T22:27:57.305058Z

@richiardiandrea didn’t get too far on my mac: https://gist.github.com/darwin/d83d315ca889dc1d99d73141d1335536

2017-06-25T22:29:04.308403Z

it looks like you are using some debug api I’m missing here for some reason, don’t have time investigate right now, I’m a first time boot user

1👍