redhat-developer / redhat-developer/vscode-java
Working Maven project reports multiple errors in VSCode and will not build
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I have a simple working Java Maven project. This project builds (assuming you have Java and Maven setup) - with:
mvn clean install
And the jar file runs as expected.
However, when I open it in VSCode (I have the Java Extension pack installed) - I see 105 "Problems" reported in the pom.xml:
- 4x "Failed to read artifact descriptor for ..."
- The rest "Missing artifact ..."
This appears to prevent most of the VSCode Java tools from working - I can't build and debug. Intellisense seems to be sketchy/intermittent. And so on.
Environment
- Operating System: Windows 10
- JDK version: OpenJDK 11.0.5.10
- Visual Studio Code version: 1.41.1
- Java extension version: 0.55.0
Steps To Reproduce
- Extract the attached zip file to a folder
- Open the folder in VSCode and inspect the Problems tab
- Attempt to build the project
To prove Maven works
- Extract the attached zip file to a folder
- Open a bash or cmd window, cd to the folder and run
mvn clean install - Copy the generated thularest-1.0.jar file from
<folder>/targetto<folder>/bin - cd to /bin and run
./rest-start.sh - Crowse to http://localhost:8080/api/hello
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
添付された vsc-java-test.zip を使って報告を再現します。VSCode で Maven プロジェクトを開き、Problems タブを確認して、シェルでの mvn clean install と比較します。報告された診断を起点に、Java extension のプロジェクトインポートと依存関係の解決を追跡します。完了の条件は、有効なプロジェクトに欠落アーティファクトのエラーが表示されなくなり、Java のビルド/デバッグツールが動作することです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- build-system, developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100