redhat-developer / redhat-developer/vscode-java

java.configuration.runtimes not working

オープン
#2,625 コメント 14 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Maven runtime upstream
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。