redhat-developer / redhat-developer/vscode-java

JDT-LS doesn't detect Java 19 installation in standard location

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

还没有人认领这个 Issue。

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

描述

On my machine, I have Java 19 installed in a standard location. Both CLI or Eclipse IDE do find it properly apparently. When trying to open a project defined in Eclipse IDE and that requires Java 19 (working fine in Eclipse IDE), vscode-java throws tons of errors with no assistance/quickfix to remediate those.

Environment
  • Operating System: Fedora 38
  • JDK version: Java 19
  • Visual Studio Code version: ?
  • Java extension version: 0.25.10
Steps To Reproduce
  1. On my Fedora, Java 19 is installed with usual dnf install java-openjdk-latest
  2. Generate a dummy project in Eclipse IDE targeting Java 19; play with it a bit to verify Eclipse IDE can deal with it
  3. Import the project in VSCode with Java extension

testProject.zip

Current Result

Unbound classpath container: 'JRE System Library [JavaSE-19]' in project 'sandboxJava' message and tons of unresolved types from the JRE

Expected Result

Everything fine

Additional Informations

I would expect JDT-LS to detect Java 19 from such a standard directory; and also to provide an helpful quickfix about remediation (even just linking to documentation would be better)

贡献指南

打开贡献指南

从这里开始

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

调研方向

从附加的 testProject.zip 开始,在通过 dnf install java-openjdk-latest 安装了 Java 19 的 Fedora 38 上重现导入过程。跟踪 Java extension 和 JDT-LS 如何解析 JRE System Library [JavaSE-19] 条目。当项目导入时不存在未解析的 JRE 类型,或用户收到可操作的修复指导时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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