Fork me on GitHub
#cider
<
2021-02-14
>
william10:02:58

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

dazld11:02:23

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 Sullivan11:02:45

Which one does $JAVA_HOME point to in your environment?

dazld11:02:11

appears to be unset?

dazld12:02:36

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

dazld12:02:49

just for quil, in fact 🙂

Eamonn Sullivan12:02:00

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 Sullivan12:02:11

So, does that work?

dazld12:02:01

setting it manually did indeed work

dazld12:02:24

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

dazld12:02:31

thanks for help