Skip to content

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

@bedo2991

Description

@bedo2991

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
  • Operating System: Windows 11
  • JDK version: Corrretto-17
  • Visual Studio Code version: 1.94.2
  • Java extension version: 1.35.1
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:\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions