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.
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)
as it’s done in gorilla-repl.nrepl/start-and-connect
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
I’m not certain I’m configuring :nrepl-middleware
the right way. I wrapped it in a vector with the same result.
I also don’t know if you can put vars from the project into project.clj, or if there’s a trick to it.