cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
william 2021-02-14T10:56:58.266900Z

can I open two repls in cider, one for shadow-cljs app and the other for the tests?

dazld 2021-02-14T11:41:23.269700Z

I’m using emacsclient, and having trouble figuring out where to define which JDK the clojure command uses when running cider-jack-in - I’ve tried fiddling with exec-path to include the jenv shims path, for example, but it always seems to drop back to the default system JDK (15 in my case), and ignores the global shim that jenv sets up. Any ideas on where to look?

Eamonn Sullivan 2021-02-14T11:49:45.270200Z

Which one does $JAVA_HOME point to in your environment?

dazld 2021-02-14T11:55:11.270900Z

appears to be unset?

dazld 2021-02-14T12:07:36.271100Z

I set JAVA_HOME manually with setenv - fortunately, its rare that I have to switch JDKs

dazld 2021-02-14T12:07:49.271300Z

just for quil, in fact 🙂

Eamonn Sullivan 2021-02-14T12:28:00.272Z

I have to switch JDKs frequently at work (our Scala services are all still on 8, while stuff I do in Clojure is JDK 11). I use sudo update-alternatives --config java on Ubuntu, which I think sets $JAVA_HOME and it seems to work reliably. On the Mac, I use jenv, but that doesn't seem to work as well. I have to reset it now and again.

Eamonn Sullivan 2021-02-14T12:28:11.272200Z

So, does that work?

dazld 2021-02-14T12:32:01.272400Z

setting it manually did indeed work

dazld 2021-02-14T12:32:24.272600Z

there’s undoubtedly more elegant ways to do this - but know where to look now

dazld 2021-02-14T12:32:31.272800Z

thanks for help

Eamonn Sullivan 2021-02-14T13:10:41.273Z

:thumbsup: