Fork me on GitHub
#cider
<
2019-06-27
>
Ian Fernandez17:06:12

Hey guys, I'm having a problem on connecting to a cider repl...

ERROR: Unhandled REPL handler exception processing message {:op version, :prefix-rewriting false, :debug false, :session ab137606-0faa-4ed6-86c9-104bc05b32cb, :id 8}
java.lang.IllegalArgumentException: No implementation of method: :send of protocol: #'clojure.tools.nrepl.transport/Transport found for class: nrepl.middleware.caught$caught_transport$reify__22839

Ian Fernandez17:06:25

anyone knows why this stuff happens?

Ian Fernandez17:06:11

I'm starting the REPL like this:

/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[refactor-nrepl\ \"2.5.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.22.0-beta6\"\] -- update-in :plugins conj \[nubank/midje-nrepl\ \"1.2.0-SNAPSHOT\"\] -- repl

dpsutton17:06:40

this happens because some dep of your deps has clojure.tools.nrepl in it. Run lein deps :tree and see who is bringing in the older clojure.tools.nrepl. Then add an exclusion to your dep

Ian Fernandez17:06:15

=)) it was a

clojure.tools.nrepl
dependency

Ian Fernandez17:06:21

thanks!!! 😃

dpsutton18:06:07

of course! happy hacking

bozhidar18:06:34

I wonder how long will the spirit of tools.nrepl keep haunting us… 😄

Diego23:06:11

Hey there, is it possible to do something like cider-eval-defun-at-point but display de result in the repl?

jumar07:06:08

What I often use is cider-sent-last-sexp-to-repl. There's also cider-send-function-to-repl and a bunch of similar functions.

Diego19:06:40

Interesting, but I can’t find them in the docs, and do not have them available as commands. Are they part of a set of extensions or something?