cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
2021-05-06T04:45:13.457100Z

When I have two cljs repls connected to the current project (one web, one react-native), how do I switch between them? I.e. how do I determine which repl cider-eval-last-sexp goes?

dpsutton 2021-05-06T04:49:50.457800Z

it's based on which one last had point in it (the cursor). so focus the one you want and then all forms will be evaluated there

👍 1
yuhan 2021-05-06T05:23:12.462800Z

I'm in a .cljs file trying to cider-connect-cljs, but Cider tells me that there's an existing clj repl and I should connect a sibling, so I run cider-connect-sibling-cljs but it throws an error "no cljs REPLs in current session". Am I missing something? That's the whole reason for trying to connect a sibling

yuhan 2021-05-06T05:38:56.467200Z

Ok, I figured out that I have to be in a .clj buffer in order to connect a cljs sibling, and vice versa (if the session only has a cljs repl, I have to navigate to a cljs file and then connect-sibling-clj). Is this the right mental model? I find it quite unintuitive, especially if there are no files of the other type at all

dpsutton 2021-05-06T05:39:49.468300Z

file a ticket about that. that sounds quite weird

👌 1
bozhidar 2021-05-06T05:54:45.468600Z

Agreed. Seems like a bug.

bozhidar 2021-05-06T05:55:21.469200Z

At this point the session management code is definitely the most problematic part of CIDER's code.

bozhidar 2021-05-06T05:55:56.469800Z

It needs a lot of love.

yuhan 2021-05-06T06:10:17.471200Z

Also, is there any indication of errrors when evaluating Clojurescript forms? I'm not expecting full stack traces like with the JVM, just anything to distinguish it from the evaluation returning nil