gorilla-repl icon indicating copy to clipboard operation
gorilla-repl copied to clipboard

Connect to remote nREPL server

Open JonyEpsilon opened this issue 10 years ago • 3 comments

It would be nice if Gorilla could connect to an already running/remote nREPL sever. The sticking point is that Gorilla needs to insert its own middleware, and I don't think that's possible at the minute in a running nREPL server. There's been some discussion here https://github.com/clojure-emacs/cider/issues/720 about the value of being able to change the nREPL middleware at runtime.

JonyEpsilon avatar Aug 11 '14 11:08 JonyEpsilon

As a sign of interest, I've done a very basic version of this for a professional project myself.

My 2 cents would be:

  1. Provide a convenience function to add the cider + gorilla middlewares when starting an embedded nrepl - I had to do this manually in the app
  2. Add an option to the config for connecting to a remote instead - I simply hacked this in https://github.com/cursork/gorilla-repl/compare/remote-nrepl

If it's impossible to add middleware on the fly, expecting the remote repl to have the middleware already seems like a reasonable interim solution to me.

cursork avatar Sep 25 '14 17:09 cursork

Thanks for the notes. I'm a bit busy at the moment to get much done on Gorilla, but remote REPL is high on my list once I have some more time :-)

JonyEpsilon avatar Sep 26 '14 20:09 JonyEpsilon

@cursork - this looks like a good one to have for the time being- https://github.com/cursork/gorilla-repl/compare/remote-nrepl :+1:

anujsrc avatar Jun 25 '15 06:06 anujsrc