redhat-developer / redhat-developer/vscode-java
Extension overwrites JAVA_HOME set by Nix with SDKMAN!
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I use Nix to manage my JDKs. All Nix packages for the different JDK distributions also configure the JAVA_HOME environment variable. This configuration takes precedence over SDKMAN!. In fact, from a Terminal window, everything works correctly. However, when opening the project in Visual Studio Code, the "Language Support for Java(TM) by Red Hat" extension seems to overwrite the value set by Nix with the one from SDKMAN!, even if there's no .sdkmanrc file in that project and the whole session is within the Nix environment context.
I have created a repo with a minimal setup and detailed instructions to reproduce the error (issue number 2 in the README).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Issue にリンクされている最小再現リポジトリから始め、その README にある issue 2 に従ってください。ターミナル内の JAVA_HOME と、Visual Studio Code でプロジェクトを開いたときの値を、セッションの Nix コンテキストおよび .sdkmanrc ファイルが存在しないことも含めて比較してください。このセットアップで拡張機能が Nix の JAVA_HOME を上書きしなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, nixos, typescript, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100