Fork me on GitHub
#cider
<
2018-08-25
>
levitanong07:08:12

Hi all, can anyone explain to me how cider automatically connects to the nrepl server started by cider-nrepl/init? 😄

bozhidar17:08:00

@levitanong starting the server produces a text message that CIDER parses to know that the server is already running and what port to connect to.

bozhidar17:08:26

It’s exactly the same for lein repl and boot repl.

bozhidar17:08:42

This entire ns will be removed at some point, as this functionality was added to nREPL itself recently.

levitanong17:08:41

when does cider start looking for that text message?

bozhidar18:08:44

Look for nrepl-server-filter in nrepl-client.el.

bozhidar18:08:51

Why are you asking about this?

levitanong18:08:39

got it, thanks! Haha, I’m trying to get shadow-cljs, tools deps, my own server, and cider to work nicely together.

levitanong18:08:03

I realized how little i knew about cider, so I’m trying to understand how it works.