redhat-developer / redhat-developer/vscode-java

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

未关闭
#3,820 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
2.3k
派生
547
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

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:\

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

在 Windows 11、Corretto 17、VS Code 1.94.2 以及一个没有 C: 写入权限的用户环境中复现,并将相关变量设置为 \fs02.。首先跟踪扩展激活以及 bootstrap 路径对该变量的处理,然后启用链接的 troubleshooting 日志。完成标准是 Java 扩展和相关 Java 扩展能够激活,且不会尝试创建 C:\fs02。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
developer-experience, devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。