redhat-developer / redhat-developer/vscode-java

java.configuration.runtimes not working

Open
#2,625 14 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Maven runtime upstream
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

[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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the reported MacOS, VS Code, Java extension, and JDK versions using a Spring Boot project whose Maven Java version is 11. Start with the settings.json java.configuration.runtimes configuration and the Java Runtime language-level display; done means the project uses the configured JDK and different JDKs can be selected per project.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.