Fork me on GitHub
#dirac
<
2016-08-25
>
giles06:08:23

why do you say it looks like the dirac nrepl middleware doesn't connect to Weasel

giles06:08:59

dirac.lib.nrepl-tunnel | [NREPLTunnel#1] Enqueue message #0ce96e75 to be sent to a DevTools client via tunnel: | {:id "0ce96e75-1727-499d-955a-60d85ef62418", | :ns "cljs.user", | :op "bootstrap-info", | :session "6ecf7541-92aa-423e-9f15-34524f00cfd7", | :weasel-url "<ws://localhost:8232>"} dirac.lib.nrepl-tunnel-server | Sending message #0ce96e75 to client [WebSocketServerClient#2] dirac.nrepl.piggieback | eval-cljs (ns cljs.user (:require [cljs.repl :refer-macros (source doc find-doc apropos dir pst)])) dirac.nrepl.piggieback | eval-env {:context :expr, :locals {}, :ns {:name cljs.user}} dirac.lib.weasel-server | [WeaselREPLEnv#1] -evaluate called <cljs repl> 1 | goog.addDependency("base.js", ['goog'], []); | goog.addDependency("string/string.js", ['goog.string', 'goog.string.Unicode'], []); | goog.addDependency("object/object.js", ['goog.object'], []);

giles06:08:48

it looks like weasel is carrying out the eval-cljs command from piggieback like it's supposed to

giles06:08:25

WebSocketServerClient#2 is the client of WebSocketServer#2, which is the weasel server

darwin07:08:50

@giles: I don’t have all the context in my head ATM, will have to look at the code, btw. this is the error branch you are hitting: https://github.com/binaryage/dirac/blob/master/src/implant/dirac/implant/intercom.cljs#L289-L292

darwin07:08:45

response from the bootstrap message sent from client to agent is somehow bad

darwin19:08:26

@giles: I will be ready to assist you when you get back to it, with v0.6.4 we can also more easily debug DevTools frontend and enable rich debug logging there