dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
denisj 2016-08-26T01:35:46.001071Z

@darwin Thanks for the work on :preloads We're coming along in leaps and bounds. I've switched to using :preload for both devtools + dirac. I'm seeing a fair bit of this, should I create an issue ?

Internal Dirac Error: DevTools code has thrown an unhandled exception
Dirac v0.6.4, Chrome/54.0.2816.0, Linux/?, Backend API/54.0.2839.3/8b3f5df/internal (1 registrations), Backend CSS/54.0.2839.3/8b3f5df/internal (1 definitions)
TypeError: Cannot read property 'text' of undefined
    at Function.WebInspector.ConsoleMessage.simpleTextFromException (<chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:5661:27>)
    at Function.WebInspector.ConsoleMessage.fromException (<chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:5665:168>)
    at WebInspector.RuntimeDispatcher.exceptionThrown (<chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:7395:49>)
    at Object.dispatch (<chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:4985:63>)
    at WebInspector.WebSocketConnection.dispatch (<chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:4925:31>)
    at WebInspector.WebSocketConnection._onMessage (<chrome-extension://kbkdngfljkchidcjpnfcgcokkbhlkogi/devtools/front_end/inspector.js:11988:31>)

denisj 2016-08-26T01:49:14.001072Z

Also

Internal Dirac Error: an error was logged into the internal DevTools console
Dirac v0.6.4, Chrome/54.0.2816.0, Linux/?, Backend API/54.0.2839.3/8b3f5df/internal (1 registrations), Backend CSS/54.0.2839.3/8b3f5df/internal (1 definitions)
("Request Runtime.runIfWaitingForDebugger failed. {\"code\":-32601,\"message\":\"'Runtime.runIfWaitingForDebugger' wasn't found\"}")

giles 2016-08-26T02:24:53.001073Z

@darwin let me know what I can do to help you help me - would you like me to send the entire log output? (I've set the agent and nrepl to log-level trace and verbose true

denisj 2016-08-26T02:50:44.001074Z

I may just be slightly behind the recommended Chrome Version 54.0.2816.0 dev (64-bit) vs release notes ~54.0.2840.0

2016-08-26T09:45:31.001079Z

@denisj can you try with chrome unstable? here is how I install it: https://github.com/binaryage/dirac/blob/master/.travis.yml#L19-L23

2016-08-26T09:50:39.001081Z

you have two problems I think, first is due to old Chrome: https://github.com/binaryage/dirac/issues/32 and second one may be a bug in 0.6.4, because your extension tried to use bakend-in API definitions and has only 1, so that is wrong - I suppose it is because under linux there are different new-line feeds and my code didn’t work as expected

denisj 2016-08-26T13:03:45.001084Z

@darwin: already using unstable but I will see if I can force upgrade to a later unstable tomorrow and I will report back. Thx

2016-08-26T14:29:19.001087Z

@giles I’m testing it right now with dirac-sample on my machine with version 0.6.4, I have enabled debug logging for lein repl process and also verbose logging for client side[1] and here is my output for localhost communication: https://gist.github.com/darwin/59bd7f6e08c721be22cc3088df633e2c [1] https://github.com/binaryage/dirac-sample/commit/ed60cf3983ef0bf8abca017772fda7c8bd4d9919

2016-08-26T14:30:23.001090Z

unfortunately the messages on client side cannot be expanded because it is compiled under :advanced mode, but at least we have a list of logs that should appear during REPL initialization

2016-08-26T14:31:00.001091Z

please try to do the same and send me a full log from your server-side REPL process and also similar log from client-side (with enabled verbosity)

2016-08-26T14:34:29.001092Z

also wondering why :weasel-url in the log you pasted is "<ws://localhost:8232>”, shouldn’t it be pointing to the right IP address of your client-side machine?

2016-08-26T14:41:57.001093Z

ok, I have tracked it down to this nREPL config: https://github.com/binaryage/dirac/blob/master/src/nrepl/dirac/nrepl/config.clj#L8

2016-08-26T14:43:14.001095Z

in your case, you have to specify an IP address of your weasel (your client-side machine with the browser), it is “localhost" by default

2016-08-26T14:45:01.001096Z

for quick testing you can set env variable DIRAC-NREPL-WEASEL-HOST, if you wanted to set this on per-project basis, you should be able to specify such overrides via :repl-config in dirac runtime options: https://github.com/binaryage/dirac/blob/master/src/runtime/dirac/runtime/prefs.cljs#L31