redhat-developer / redhat-developer/vscode-java
Extension does not start if the variable being used is on a network share
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
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
- User without write rights on C:\
- Open a Java file
- 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:\
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce on Windows 11 with Corretto 17, VS Code 1.94.2, and a user lacking write access to C:, with the relevant variable set to \fs02. Start by tracing extension activation and the bootstrap path handling that variable, then enable the linked troubleshooting logs. Done means the Java extension and related Java extensions activate without attempting to create C:\fs02.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100