redhat-developer / redhat-developer/vscode-java
Self referencing maven modules should not trigger an infinite loop in vscode
オープン
まだ誰も着手していません。
compile
Maven
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Vscode enters an infinite loop while trying to compile a falsy module setup. It should instead break the build should break with an error stating that a module is self-referencing itself the same way the maven cli report it.
Environment
- Operating System: OSX BIg Sur
- JDK version: OpenJDK 11.0.8 2020-07-14
- Visual Studio Code version: [Version: 1.56.2 Commit: 054a9295330880ed74ceaedda236253b4f39a335]
- Java extension version:
Steps To Reproduce
- Create a parent maven project with packaging type
pom-parent - Create a submodule (module-1) project with the packaging type '
jar' in the previous parent project - Add a dependency of
module-1inparentwith the save version (${project.version}) - See the error: Vscode will enter an infinite loop trying to resolve the dependency
Sample project reproducing the error
Current Result
The build will never get past the 339/1000 as displayed in the console (infinite loop)
Expected Result
Build should terminate with error as done bymaven when using the cli.
Additional Informations
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、添付された test-self-ref.zip プロジェクトを Java 拡張機能にインポートし、その動作を Maven CLI と比較します。339/1000 で停止する原因となっているモジュール解決パスを追跡します。自己参照するセットアップが無限ループするのではなく、エラーで終了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- build-system, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100