coursier
coursier copied to clipboard
there is a `null` in when `cs setup` on Windows.
PS C:\Users\hepin> cs setup Checking if a JVM is installed Found a JVM installed under C:\Users\hepin.jdks\corretto-1.8.0_382.
Checking if ~\null\Coursier\data\bin is in PATH Should we add ~\null\Coursier\data\bin to your PATH? [Y/n]
Looks like a standard issue with powershell: https://github.com/dirs-dev/directories-jvm/issues/51
@tgodzik https://github.com/tgodzik/metals/commit/e4fd8602ac12b5baf8b13251956b2d5da1a47cf1 you have a pr:)
it's more of a workaround, but we could do the same in coursier
coursier is supposed to be using its own fork of directories-jvm, that shouldn't suffer from as many null errors as mainline directories-jvm, by getting the directories it needs using direct API calls via jni-utils. Powershell is only used as a fallback. So I wouldn't expect the exact same issue as other projects using mainline directories-jvm.
@He-Pin Do you confirm you're using the latest coursier version (2.1.7, although 2.1.5 ought to be fine)? Can you try again by setting COURSIER_JNI=force in the environment (should be set COURSIER_JNI=force), and report back what you get?