gorilla

2017-08-03T14:17:29.455803Z

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.

2017-08-03T14:18:51.507041Z

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)

2017-08-03T14:19:40.538148Z

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

2017-08-03T14:21:03.592940Z

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

2017-08-03T14:24:02.708238Z

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

2017-08-03T14:24:43.734818Z

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