redhat-developer / vscode-java

Java Language Support for Visual Studio Code
Eclipse Public License 2.0
2.08k stars 441 forks source link

Extension does not start if the variable being used is on a network share #3820

Open bedo2991 opened 1 month ago

bedo2991 commented 1 month ago

The exception fails at starting, with an exception. I don't know what OS variable is used at bootstrap (maybe APPDATA?), but in my case that is set to a network share, and does not work as it seems it get chained to C:

Environment
Steps To Reproduce
  1. User without write rights on C:\
  2. Open a Java file
  3. Error output:
    Java Extension fails to activate.
    Error while activating Java: {"name":"Error","message":"Activating extension 'redhat.java' failed: EPERM: operation not permitted, mkdir 'C:\\fs02'."}. If vscode-java failed to activate, try these troubleshooting steps: https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting

[Please attach a sample project reproducing the error] Please attach logs

Current Result

Exception, the extension and all java-related extensions do not start

Expected Result

The extension should run

Additional Informations

\fs02\ is the starting path of the network share, that is not inside C:\