redhat-developer / redhat-developer/vscode-java

More than one Java maven project is not displayed/resolved correctly in Java Projects view of multi root workspace in VS Code

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

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

bug Maven regression
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

client.log
client_log2.log

Hi,

A couple of days ago noticed that when I add new java project It does not get resolved (classpath, JRE, etc) in Java Projects view. Hence Tests not working and in general it is not a java project for VS Code. If I remove the first project from the workspace then the second becomes a valid project.

I have the same laptop at home which is synced via github account for settings, extensions, etc and home laptop works fine but on small projects.

My work laptop periodically takes very long time to open Java projects (I have normally 5-7) in the workspace. When it can't within 2 min I just do cleanup workspace and after reload it can open, though still takes some time. This got worse over time. I already reinstalled vs code and cleaned all metadata. Did not help.

When project is not recognized as a Java project the tree node in java projects corresponding for this project is not expanding.

Could someone take a look and fix this as it is very annoying.

Thank you,
Andrei.

Environment
Steps To Reproduce
  1. Create a new workspace
  2. Import/Create new Java maven project
  3. Add to workspace a folder with a another Java maven project
  4. Check that the second project can be expanded and you can see packages, JDK, Maven dependencies, etc in Java Projects view.
  5. This does not happen for any 'second project'. Simple 'hello world' projects work sometime.
  6. If you remove the first project then the second gets displayed/handled properly.
    client.log

[Please attach a sample project reproducing the error]
Please attach logs

Current Result

Second, third, etc projects in the Multi root java workspace stopped working 2-5 days ago

Expected Result

Multiple Java projects should work in Multi root java workspace

Additional Informations

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

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

はじめの一歩

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

調査の方向性

記載された手順に従い、2つ以上のJava Mavenプロジェクトでマルチルートワークスペースを再現し、その後、添付されたclient.logファイルとJava Projectsビューの動作を確認します。すべてのプロジェクトでclasspath、JRE、パッケージ、Maven依存関係が解決され、別のプロジェクトを削除せずに展開できるようになれば、修正は完了です。

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

評価

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

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

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