nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
flowthing 2019-04-26T11:20:25.010800Z

I'd like to do the equivalent of lein repl :connect <http://localhost:3001/repl> with clj. That is, something along the lines of clj -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} nrepl/drawbridge {:mvn/version "0.2.0"}}}' -m nrepl.cmdline --interactive --connect --url <http://localhost:3001/repl>. I think that's currently not possible, since the --url flag doesn't exist. Would it make sense to add something like that?

flowthing 2019-04-26T12:36:43.010900Z

...although it's pretty easy to just do something like that yourself. I pieced together a small app that connects to a Drawbridge nREPL endpoint and uses rebel-readline for the REPL stuff.

pez 2019-04-26T13:07:20.012200Z

Tried --host and --port?

pez 2019-04-27T07:02:55.015900Z

Gotcha. Completly missed the /repl part.

bozhidar 2019-04-26T14:48:43.013700Z

The problem is that for connect to know how to handle http, drawbridge has to have been required already. There’s no real need for a separate param. We just need to add some check in the cmd client to require the drawbridge client ns (if present).

bozhidar 2019-04-26T14:49:23.014300Z

That’s a common problem for all third-party transports url-connect should be made aware of them somehow, so it’d work with them.