Fork me on GitHub
#nrepl
<
2018-10-30
>
flowthing12:10:21

So I wanted to give Drawbridge a go. I added the Drawbridge Ring handler into my web app and tried to connect to it like this:

(require '[nrepl.core :as nrepl]
           '[drawbridge.client :as client])

(with-open [conn (nrepl/url-connect "")]
    (-> (nrepl/client conn 1000)
        (nrepl/message {:op "eval" :code "(+ 2 3)"})
        nrepl/response-values))
But I get this error: ArityException Wrong number of args (0) passed to: client/ring-client-transport/read--2318 clojure.lang.AFn.throwArity (AFn.java:429)

flowthing12:10:26

I can't see how that'd work, but maybe I'm missing something. I didn't dive too deeply into the code yet.

bozhidar13:10:27

@flowthing File a ticket for this. I think someone mention this breakage as well, but I didn’t find a time to investigate it and I forgot about it.

bozhidar13:10:02

The fix should be pretty simple, although I’m puzzled how we broke this in the first place, as I haven’t really touched the code apart from updating the namespaces for nREPL 0.4 compatibility.

flowthing13:10:23

OK, will do.

flowthing13:10:08

I'm also a bit puzzled, because I blamed both files as far back as they go and as far as I could see, that discrepancy has always existed.

flowthing13:10:39

Might be I just missed something, though.