microsoft / microsoft/vscode-java-dependency
Java FX projekt add dependency failed
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 199
- フォーク
- 105
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 27
説明
Since yesterday's "Project Manager for Java" release, additional dependencies added to JavaFX do not work.
I am making a Java FX project. This is based on Maven. It works.
When I add an extra dependency like Gson.
com.google.code.gson gson 2.11.0I write in the code:
Gson gson = new Gson();
I import as usual.
The dependency cannot be used. VSCode says Gson cannot be resolved. It is there in the pom.xml file, and the import is also there in the code.
I saw that other people had previously written that, due to modularization, the following must be entered in the module-info.java file:
requires com.google.gson;
But even this instruction gives me trouble, you can't even find the module here.
I used it 3 days ago and there were no problems with it.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
pom.xml に示されている依存関係を使用する JavaFX Maven プロジェクトで失敗を再現し、その後、module-info.java の requires com.google.gson エントリがある場合とない場合の動作を比較します。依存関係の解決に関する Project Manager for Java の統合を確認します。完了の条件は、VS Code で未解決の依存関係エラーなしに Gson をインポートして使用できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- build-system, developer-experience
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 30/100