redhat-developer / redhat-developer/vscode-java

java.configuration.runtimes not working

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

还没有人认领这个 Issue。

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

描述

[provide a description of the issue]

Environment
  • Operating System: MacOS Big Sur
  • JDK version: openjdk8, openjdk11, openjdk17, temurin8, temurin 11, temurin 17
  • Visual Studio Code version: 1.70.1
  • Java extension version: 0.25.0
Steps To Reproduce
  1. Open a Java project - Spring Boot and java.version on Maven is 11
  2. Wait until Java Build Status is finished
  3. Hover mouse over on "Language Level" of Java Runtime at the right-bottom.
  4. It is always one of the 8 version, even though the title shows JavaSE-11. My configuration change on settings.json (for user and workplace both) is not working.
  5. If I remove all 8 JDKs, JavaSE-11 is still shown but the path becomes "/Library/Internet Plug-ins/Java/AppletPlugin.plugin/Contents/Home".

[Please attach a sample project reproducing the error]
Screen Shot 2022-08-11 at 12 42 27 PM
Please attach logs

Current Result

java.configuration.runtimes does not work at all and I cannot use any other JDKs except the one VSCode chooses by default.

Expected Result

I had been able to chose different JDKs per project.

Additional Informations

I have not used VSCode for my Java development for a while and found this recently.

贡献指南

打开贡献指南

从这里开始

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

调研方向

使用 Maven Java 版本为 11 的 Spring Boot 项目,利用报告中所述的 MacOS、VS Code、Java extension 和 JDK 版本重现该问题。从 settings.json java.configuration.runtimes 配置和 Java Runtime 语言级别显示开始;当项目使用已配置的 JDK,并且可以按项目选择不同的 JDK 时,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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