redhat-developer / redhat-developer/vscode-java
Cannot really use the right jdk version without cleaning the workspace
未关闭
还没有人认领这个 Issue。
runtime
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Environment
- Operating System: Windows
- JDK version: 1.8.0_211 and 12.0.1
- Visual Studio Code version: 1.35.1
- Java extension version: 0.46.0
Steps To Reproduce
- Open a java12 invisible project
- Change the local JDK version from 8 to 12
- Reopen the project in VSCode again
[attach a sample project reproducing the error]
invisble-project.zip
Current Result
- There is still an error in the source code, the compilation failed
- After cleaning java language server workspace, compile again, works

Expected Result
Works without cleaning java language server workspace
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 invisible-project.zip 在 Windows 和 JDK 8 下复现,将 JDK 切换到 JDK 12,然后在 VS Code 中重新打开项目。首先跟踪失败编译前后 Java language server 的 workspace 状态;完成标准是 JDK 更改后项目无需清理 workspace 即可编译。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100