Fork me on GitHub
#cider
<
2016-09-08
>
borkdude14:09:04

How do you deal with multiple REPLs in cider?

borkdude14:09:13

How do you select the one you want to evaluate code against?

borkdude14:09:16

If I understand correctly, CIDER figures it out, nice

norman14:09:53

try M-x cider-connection-browser to see which nrepl is the default one

norman14:09:09

You can switch connections there if cider isn’t picking the right one

norman14:09:46

It got a little smarter a few releases ago so you normally shouldn’t need to do that

norman14:09:15

if you have multiple projects

norman14:09:07

if you are trying to, for example, talk to nrepls for two different instances of one project, then you’ll need to do the manual nrepl switching.

norman14:09:12

I sometimes do that when talking to the staging machines and want to check something on all N of our servers…. Launch a bunch of ssh sessions with ports forwarded to the nrepl port. M-x cider connect to them all and toggle through.

borkdude18:09:20

How can you cancel the evaluation of C-x C-e when it takes too long?

seancorfield18:09:30

C-c C-c should cancel it I think (but it may depend on exactly what the code is doing).

borkdude18:09:01

I think I lost my REPL by evaluating something huuuge

borkdude18:09:32

it’s back