I'm editing a ClojureScript file, and I have a working ClojureScript REPL in another buffer. But when I try to evaluate a form in my file ui.cljs, with C-c C-c, I get a beep an a message in the mini-buffer that says
No cljs REPLs in current session "MyProjectDir/MyProject:localhost:59437
I don't really understand what that means, but it appears that my ui.cljs file got associated with the wrong REPL - the Clojure REPL, not the CLJS REPL.
CIDER Sessions: 1: MyProjectDir/MyProject:localhost:59437 linked-to: buf(ui.cljs) objects: *cider-repl %s(clj)* 2: MyProjectDir/MyProject:localhost:60016 linked-to: >proj(~/Workspace/MyProjectDir/MyProject/) objects: *cider-repl %s(cljs:weasel)* I try to "unlink" it by running the sesman-unlink command in the ui.cljs buffer. But I only get a beep and a cryptic error message in the minibuffer:
Wrong type argument: stringp, #<buffer ui.cljs>
How to associate that ui.cljs file/buffer with the correct REPL?
Emacs 25.3.1 on macOS. CIDER 0.19.0
C-c C-z?cider-connect-sibling-cljsandcider-connect-sibling-cljthat you canM-xin the repl that you want to connect, however I recommend you look at your workflow altogether and use something likefigwheelorshadow-cljs, I can post the way to get it started here if you require so.cider-jack-inand the other withcider-jack-in-cljs, andweaselto the first question it asks. It was working well for a while. When it broke,C-c C-zwas also failing. It seems to have lost the connection between the two and I couldn't recreate it. I don't getsesman-unlink. When I have a buffer "linked" it doesn't offer an option to unlink it.