Fork me on GitHub
#gorilla
<
2017-08-03
>
exupero14:08:29

I’d like to connect Gorilla to the nrepl started by lein repl, rather than having Gorilla start its own nrepl. I’m close, but I don’t think I’m getting the lein repl nrepl started with the right middleware.

exupero14:08:51

I’ve added to my project.clj :repl-options {:nrepl-middleware #'tool.gorilla/nrepl-middleware}, where nrepl-middleware is

(conj (map resolve cider/cider-middleware) #'render-mw/render-values)

exupero14:08:40

as it’s done in gorilla-repl.nrepl/start-and-connect

exupero14:08:03

Gorilla does start to load in the browser, but doesn’t get past “Loading”. In my repl I get an error

ERROR - handle websocket frame org.httpkit.server.Frame$TextFrame@156da0fa
java.lang.IllegalArgumentException: No implementation of method :send of protocol: #'clojure.tools.nrepl.transport/Transport found for class: nil

exupero14:08:02

I’m not certain I’m configuring :nrepl-middleware the right way. I wrapped it in a vector with the same result.

exupero14:08:43

I also don’t know if you can put vars from the project into project.clj, or if there’s a trick to it.