Fork me on GitHub
#cider
<
2020-06-28
>
nick.romer09:06:17

In spacemacs, can I reuse a cider session from another project that I am no longer working on, iso. shutting the old one down and startung a new one?

hindol.adhya12:06:19

That does not gain anything in my opinion.

jr0cket13:06:30

@nick.romer sesman keybindings were added to the clojure layer in Spacemacs earlier in the year, so there are quite a few options https://develop.spacemacs.org/layers/+lang/clojure/README.html#managing-repl-connections-1

nick.romer14:06:32

@jr0cket That was spot on.

jr0cket14:06:43

I havent really re-used CIDER sessions, so would be interested to hear what works for you, if you are able to share some time. Thanks.

nick.romer14:06:49

Well, simply open a clj file and launch a cider session via cider Jack in (, '). Then open a clj file from a different project (but in my case it had the same dependencies) and use SPC m m l b = link buffer to REPL session (sesman-link-with-buffer) to reuse the existing session.