Fork me on GitHub
#nrepl
<
2019-10-15
>
cfleming08:10:12

Do Cider (and other editors) implement support for nREPL over HTTP using drawbridge?

cfleming08:10:17

If so, how does that work? I’d assumed Cider had an elisp nREPL client, but if it does then I assume it can’t use drawbridge.

dominicm09:10:48

No. I don't think so.

dominicm09:10:01

I don't think the alternative protocols get much love.

shen10:10:56

I'm not sure what uses drawbridge really

pez11:10:40

There was an Eclipse extension using it, iirc. Forgot the name of it now...

cfleming20:10:25

CounterClockwise, probably

pez20:10:50

Yes, that’s the name. Is anyone using Eclipse for Clojure hacking these days, you think?

bozhidar21:10:26

It has been dead for years.

bozhidar21:10:53

> I’m not sure what uses drawbridge really

bozhidar21:10:01

Most notably Leiningen. 🙂

bozhidar21:10:16

> Do Cider (and other editors) implement support for nREPL over HTTP using drawbridge?

bozhidar21:10:44

@cfleming To my knowledge no editor does this.

bozhidar21:10:31

> If so, how does that work? I’d assumed Cider had an elisp nREPL client, but if it does then I assume it can’t use drawbridge. Basically you need to send the same requests/process the same responses over HTTP. Drawbridge itself would be transparent to the clients, but the overhead of dealing with HTTP is overkill for most clients I guess. A few users requested support for this in Emacs over the years, but the only real use-case was to debug remote apps, which they can easily do over an ssh tunnel as well.

cfleming21:10:17

The main use case that has been requested for Cursive is to have a REPL exposed with better auth control.

cfleming21:10:06

I’m actually having problems getting drawbridge to work. When I connect, new-session just hangs. I can get a client and a transport, but I can’t see why that should be the case.

cfleming21:10:42

@bozhidar AFAICT, all lein does to support drawbridge is to (require 'drawbridge.client) when connecting to a URL, is that right?