redhat-developer / redhat-developer/vscode-java

Self referencing maven modules should not trigger an infinite loop in vscode

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

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

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
  1. Create a parent maven project with packaging type pom - parent
  2. Create a submodule (module-1) project with the packaging type 'jar' in the previous parent project
  3. Add a dependency of module-1 in parent with the save version (${project.version})
  4. See the error: Vscode will enter an infinite loop trying to resolve the dependency

Sample project reproducing the error

test-self-ref.zip

Current Result

The build will never get past the 339/1000 as displayed in the console (infinite loop)

Screenshot 2021-06-10 at 10 40 39
Expected Result

Build should terminate with error as done bymaven when using the cli.

Screenshot 2021-06-10 at 11 02 07
Additional Informations

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、添付された test-self-ref.zip プロジェクトを Java 拡張機能にインポートし、その動作を Maven CLI と比較します。339/1000 で停止する原因となっているモジュール解決パスを追跡します。自己参照するセットアップが無限ループするのではなく、エラーで終了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
build-system, devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
42/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。