Alexandre Archambault
Alexandre Archambault
@dos65 We could do that too, yeah. The only reason I'd feel slightly more comfortable putting it in a separate repo would be bloopgun: it could be moved to the...
Somehow, that would make the repo here become more "bloop server" than just "bloop" (in particular if we move the integrations to separate repos).
FYI https://github.com/VirtusLab/scala-cli/pull/1199 basically adds a `bloop` CLI substitute in Scala CLI (that can be run with `scala-cli bloop …`, like `scala-cli bloop projects` or `scala-cli bloop compile -w foo`). It...
That seems to be an issue with coursier. I opened https://github.com/coursier/coursier/issues/1503 for it, I have a fix underway.
I think embedding a tiny JNI library could work too, as we're only calling simple system calls. I had started toying with that some time ago. IIRC, the main hurdle...
@phongngtuan It's discussed below https://github.com/dirs-dev/directories-jvm/issues/26#issuecomment-570288952, these environment variables are not always in sync with the system call, which returns the true values.
About the charset issue I mentioned above, maybe [`wcstombs`](https://docs.microsoft.com/fr-fr/cpp/c-runtime-library/reference/wcstombs-wcstombs-l?view=msvc-160) and [`NewString`](https://docs.oracle.com/javase/8/docs/technotes/guides/jni/spec/functions.html#NewString) would just work...
So I have [this](https://github.com/alexarchambault/jni-shell32) working. I also manually checked that it works with non-ASCII characters. I think I'm going to try to have it built and published from GitHub actions,...
For context, I think the JNI / Powershell approach is slightly better than just reading env vars, but more importantly, it should be useful in other places in coursier ([terminal-related...
If ever people stumble upon this issue, this is addressed in coursier, via JNI, by: - using [coursier/directories-jvm](https://github.com/coursier/directories-jvm), that has https://github.com/coursier/directories-jvm/commit/7acadf2ab9a4ce306d840d652cdb77fade11b94b - using [coursier/jni-utils](https://github.com/coursier/jni-utils) to create a `GetWinDirs` instance to...