redhat-developer / redhat-developer/vscode-java
java.configuration.runtimes not working
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
[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
- Open a Java project - Spring Boot and java.version on Maven is 11
- Wait until Java Build Status is finished
- Hover mouse over on "Language Level" of Java Runtime at the right-bottom.
- 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.
- 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]

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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema con le versioni indicate di MacOS, VS Code, della Java extension e del JDK utilizzando un progetto Spring Boot la cui versione Java di Maven è 11. Inizia con la configurazione settings.json java.configuration.runtimes e la visualizzazione del livello del linguaggio di Java Runtime; il lavoro è completo quando il progetto utilizza il JDK configurato e per ogni progetto è possibile selezionare JDK diversi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, spring-boot, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100