@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>)
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\"}")
@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
I may just be slightly behind the recommended Chrome Version 54.0.2816.0 dev (64-bit) vs release notes ~54.0.2840.0
@denisj can you try with chrome unstable? here is how I install it: https://github.com/binaryage/dirac/blob/master/.travis.yml#L19-L23
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
@darwin: already using unstable but I will see if I can force upgrade to a later unstable tomorrow and I will report back. Thx
@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
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
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)
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?
ok, I have tracked it down to this nREPL config: https://github.com/binaryage/dirac/blob/master/src/nrepl/dirac/nrepl/config.clj#L8
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
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