Fork me on GitHub
#cider
<
2022-11-08
>
Apple16:11:27

in emacs, when i connect to a shadow-cljs repl initially, cider thinks that i'm connected to a clj repl. all good. then if i does a switch like this

shadow.user> (shadow/repl :app)
To quit, type: :cljs/quit
[:selected :app]
cljs.user> 
then cider notices that i'm connected to a cljs repl while at the same time thinks i'm disconnected from a clj repl i can start a second clj repl to the same shadow-cljs and leave it in clj mode, but cider is not to be able to recognize that i'm connected to both clj and cljs repl. when i activate either the clj or cljs repl buffer, cider thinks i'm connected to the respective repl but disconnected from the other. how to make cider support both repls at the same time?

dpsutton16:11:38

my memory is that it supports both. There is a bug that it only sees that last repl you put your cursor in though. But just highlighting the clj or cljs repl buffer will make it “see” that one. A bug in that regard but it will work

Apple16:11:15

"it only sees that last repl you put your cursor in" precisely

Apple16:11:35

thanks to Ag in #C099W16KZ channel. the solution is to use cider-connect-sibling-cljs after the clj repl is up

Apple16:11:58

beautiful!