Hi all. Is there a way to have a shadow repl and clojure repl running at the same time? When I start one I get:
A CIDER session with the same connection parameters already exists (Repos/tic-tac-toe:localhost:38287). Are you sure you want to create a new session instead of using `cider-connect-sibling-clj(s)'? (y or n)I normally just C-c C-X j s if clojurescript or C-C M-j if Clojure.
It's generally very janky. Another thing that often happens is I press C-c C-z to get to repl and it sais there isn't one. So I try to start one and it says one already exists.
I often have to just close emacs and restart it to fix it.
you can run npx shadow-cljs server and then cider-connect-clj-and-cljs
How are you starting that new repl?
I usually do it by jack-in into the clojure repl, then start shadow-cljs from it (https://shadow-cljs.github.io/docs/UsersGuide.html#embedded), then I switch to it (https://shadow-cljs.github.io/docs/UsersGuide.html#_nrepl_usage). At this point I have only a cljs repl, then I spawn a new clj one with cider-connect-sibling-clj.
I'm probably doing extra steps for no reason and can probably just connect a clojurescript sibling instead of switch to cljs and connecting to a clj.