Fork me on GitHub
#calva
<
2020-06-12
>
pez09:06:10

@dam, I’ve never used Codium, but this is sometimes an issue with VS Code as well. Does it work if you start Codium from a command line where te paths are correctly set? (There is also a jackInEnv setting that might be usable fo this, but only as a last resort, me thinks.

dam16:06:03

Thanks pez, I'll try that.

orestis17:06:47

Setting up a new machine, used asdf to setup JVM -- is there a way I can tell VSCode / clj-kondo which java command to use?

orestis17:06:30

By default I think it uses something /usr/bin/java which on fresh macOS installs it just pops up a prompt...

borkdude17:06:58

@orestis I use something called jenv to set system wide java version, local version, shell version, etc

borkdude17:06:27

The clj-kondo plugin will use one on the system's path

borkdude17:06:37

should work with 8 and 11

orestis17:06:12

so many different approaches! I have /Users/orestis/.asdf/shims/java which is setup by fish.config 🙂

borkdude17:06:21

whatever works

orestis17:06:39

Not sure if the system PATH makes sense without a shell, right?

borkdude17:06:51

maybe it's possible to set VSCode's path. Not sure

borkdude17:06:36

maybe you could also try to uninstall the default java stuff: https://www.java.com/en/download/help/mac_uninstall_java.xml

borkdude17:06:00

oh hmm: > Do not attempt to uninstall Java by removing the Java tools from /usr/bin. This directory is part of the system software and any changes will be reset by Apple the next time you perform an update of the OS.

borkdude17:06:11

well, a script to override those default ones will probably do the trick

orestis18:06:01

Hrm, /etc/paths is supposedly the shell agnostic way of setting this -> but it seems vscode doesn't respect it.

orestis18:06:09

I’ll see if I can troubleshoot this further — where could I find the command that the clj-kondo LSP plugin uses? Just to see what’s going on there…

orestis18:06:02

Thanks, I’ll have a look tomorrow.

borkdude18:06:55

it's pretty easy to build and run too

borkdude18:06:03

locally for debugging

pez18:06:57

Does it work to use jackInEnv for this?

pez20:06:59

No, this is a kondo-thing, right?