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 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug Maven regression
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

按照列出的步骤,使用两个或更多 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 摘要。