Fork me on GitHub
#cider
<
2018-01-01
>
twashing18:01:03

Let’s say I have i) a system of components, ii) with an nrepl component in it.

twashing18:01:04

If I iii) have an active repl connection, and iv) restart the system, v) my repl connection will be lost.

twashing18:01:09

… Is there a cider function for retrying a repl connection?

bozhidar19:01:44

@twashing Since 0.15 cider-restart will reconnect to the same remote server https://github.com/clojure-emacs/cider/pull/1905

bozhidar19:01:10

There’s also this ticket, which is relative simple to implement https://github.com/clojure-emacs/cider/issues/1961

twashing19:01:17

@bozhidar Ah, just tried it - works like a charm. Thanks 👍:skin-tone-5:

bozhidar19:01:38

You’re welcome!

bozhidar19:01:25

Any volunteer to land a hand and move a bit of legacy third party code into CIDER-proper https://github.com/clojure-emacs/cider/issues/1993 ? That’s a fun and easy task, but unfortunately I don’t have time for right now.

bozhidar19:01:40

I do think, however, it’d be nice to have a profiler in CIDER

dominicm20:01:04

@bozhidar How does CIDER scope connections? I've assumed it works like fireplace, and it might not.

dominicm20:01:40

Oh, way OT from that question, but you probably didn't see this: https://github.com/SevereOverfl0w/vim-replant/blob/5d6e56974fbe3aebfbd85497201d74fc9bfe8e57/docs/CIDER.adoc It's an attempt at documenting the CIDER middleware. I've already fallen a little behind though 😄.

dominicm20:01:51

RE the scoping, I've guessed it's scoped relative to the .nrepl-port on a project I'm working on w/ embedded cider.

bozhidar20:01:25

> Oh, way OT from that question, but you probably didn’t see this: https://github.com/SevereOverfl0w/vim-replant/blob/5d6e56974fbe3aebfbd85497201d74fc9bfe8e57/docs/CIDER.adoc It’s an attempt at documenting the CIDER middleware. I’ve already fallen a little behind though 😄

bozhidar20:01:40

Great initiative! It’s clear cider-nrepl needs better documentation. 🙂

bozhidar20:01:00

> RE the scoping, I’ve guessed it’s scoped relative to the .nrepl-port on a project I’m working on w/ embedded cider.

bozhidar20:01:57

Not sure what you mean by scoping, but if you mean how we bind a connection to a project - we used the project’s root folder (identified by something like project.clj).

dominicm22:01:35

I don't think that will work for me. I've got folders on my classpath, which are sibling projects. I might need to find some fu to use, or contribute a priority on .nrepl-port for the root folder finding.

bozhidar07:01:16

So, you want one connection for two projects?

dominicm08:01:55

I have one connection, and two projects are on the classpath. Yep.

bozhidar20:01:06

.nrepl-port is something optional, but it’s unlikely there won’t be a project file.

dominicm22:01:35

I don't think that will work for me. I've got folders on my classpath, which are sibling projects. I might need to find some fu to use, or contribute a priority on .nrepl-port for the root folder finding.