-
Notifications
You must be signed in to change notification settings - Fork 30
ProjectDirectories.from hangs on Windows 10 when LIB environment variable contains non-existent directory #55
Comments
Hi @marq, what are you trying to do with the Thanks, Simon |
Hi @soc, I'm not doing anything with it. It was set by something else (I think one of the paths was set by Visual Studio). I was just trying to find out why Metals in VS Code didn't work on my machine and this led me to the problem I've described. |
Interesting, thanks! I'm evaluating other approaches (like using the new Java FFI, but that's still a long way to go), not sure what can be done to keep this PowerShell stuff from breaking. |
I have a similar issue with spawning SBT on Windows 10, both via metals and directly on the command line. I usually end up killing about 4 blocked powershell processes , all stuck on something like the following:
where the encoded command decodes to
If I run the command manually, just as it was spawned (i.e. with the base64 encoded command), I get the following error:
The LIB environment variable does point to a non existent path, just kruft left over from an old visual studio installation I guess. Fixing it to point to a valid path seems to have resolved the process hangs. It would be cool if it did a hard "print trace/message and terminate" or something like that to reduce friction for future users. |
Hey @marq, hey @softwareCobbler, I think the current way of dealing with Windows is neither reliable nor maintainable anymore. Would you be willing to test-drive https://github.com/dirs-dev/dirs-cli-rs, if I build and send you the binary for it? I'm mainly interested whether the binary runs (without UAC, warning dialogs, malware false-positives) and prints out the expected values. If that works, I'd look into replacing the existing machinery with shipping this binary in the JAR, extracting and running it. |
Version 26
It's stuck on a powershell call:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -version 2 -NoProfile -EncodedCommand JgAg...
When I try running it manually it fails:
The text was updated successfully, but these errors were encountered: