Hi! I'm trying to get Dirac working. Hitting Unable to resolve backend-url for Dirac DevTools. target-url=<http://localhost:9222>, tab-url=<http://localhost:3001/>
.
Using Chrome Version 51.0.2704.84 (64-bit) (not Canary)
Is this good enough or am I missing something?
OK, I've launched chrome with google-chrome --remote-debugging-port=9222
and now the Dirac devtools doesn't complain.
However, when I type (dirac! :join)
in the REPL, it says `Your session joined Dirac (ClojureScript). The specific target Dirac session will be determined dynamically according to current matching strategy.
No connected Dirac session is "most recent Dirac session".`
@danielsz: yes, that works as expected, please read (dirac! :help)
and (dirac! :help :join)
your session will join dirac session, after there will be one available
are you aware of this page? https://github.com/binaryage/dirac/blob/master/docs/integration.md
@darwin: Yes, I'm translating this to my Emacs Cider setup đ
let me know how it goes đ nobody probably tried this before...
BTW, I'm using Boot and boot-cljs-devtools.
cool, but I canât help much with those, because Iâm still using lein
because of figwheel
boot is great tough
no problem. What is the keyboard shortcut to open the Dirac Devtools in Chrome?
depends on your system I guess, go to <chrome://extensions>, and see âkeyboard shortcutsâ in bottom right
there you can setup also a hot key for instant repl focus
Cool. Thank you.
My next problem is that (dirac! :ls)
tells me: No Dirac sessions are currently available. Connect with at least one Dirac REPL to your nREPL server.
do you have dirac agent running? do you have Dirac DevTools open, switched to console, switched to dirac prompt and connected to the agent?
Dirac agent is running.
How do I switch to dirac prompt?
you should see a welcome message in your DevTools console, explaining it
assuming you have the latest dirac version 0.6.0
CTRL+. and CTRL+,
I have the latest dirac version, but the welcome message doesn't appear. Should I restart the browser?
Only these messages: Installing Dirac Runtime v0.6.0 and enabling features :repl util.js:206 Installing CLJS DevTools 0.7.0 and enabling features :custom-formatters :sanity-hints
no, you must be looking at something else I guess
do you see âDirac v0.6.0â in the title of the window you are looking at?
Yes, I see that.
hmm
then try to switch the prompt, dunno why you donât see the welcome message
CTRL+.
Also I would recommend using the Canary, I donât test Dirac with older Chrome versions, and chances are it simply breaks with older chrome
Okay, thanks for the tip. I'm doing some progress with my current version of Chrome but I'll switch if I can't get the full experience.
btw. you can open internal DevTools to debug Dirac DevTools, simply use standard keyboard shortcut for opening devtools while your Dirac DevTools window is focused. You might spot there some errors.
Cool. I managed to join the dirac session. Evaluation of simple forms works. However, in-ns my.namespace
results in an infinite loop :face_with_rolling_eyes:
might be some conflict between nREPL middleware
I guess.
try to remove all non-essential CIDER middleware
How do I interrupt evaluation?
no support for that
OK.
I assume that infinite loop is in your REPL process, right?
No, in the Dirac prompt in the Dirac Devtools.
REPL is stuck, doesn't return to prompt.
hm, I donât think Dirac prompt is waiting for the result synchronously
do you see any errors in the internal console? (for Dirac DevTools window)
I've restarted everything, but this time I switched to my namespace with (ns my.namespace)
and this did the trick.
Cool!
With the Canary channel, do you also need to launch chrome with remote-debugging or is it on by default?
it is not on by default
(security reasons)
So you always launch Chrome from the command line with that switch?
yes
OK, cool.
Thanks for your help. It seems to be working now. I'll play with it.
np, have fun!
And by the way, the awesome thing with boot-cljs-devtools is that most configuration is done behind the scenes.
Thanks @jupl !
@darwin You're not using Clojure to write the binaryage mac apps, are you?
no đ
I donât use Clojure for anything serious đ
@darwin: Haha. Well, in that case, you're doing a great service for mankind.