redhat-developer / redhat-developer/vscode-java
Java Maven Projects containing other nested Java Maven Projects not being recognized as Java Projects in 1.17
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Description
I admit that our project structure is not standard, but it's how we've been working for many years. We have a java (war) project that contains many Java (jar) projects in a folder structure similar to the one below.
**root_java_project**
|-> pom.xml
|-> src
|-> **child_java_project_1**
|-> pom.xml
|-> src
|-> **child_java_project_2**
|-> pom.xml
|-> src
...
|-> child_java_project_n
|-> pom.xml
|-> src
Several on our team recently experienced this issue when we updated to Java Extension Pack to 1.17. It immediately ceased recognizing our ROOT project as being a legit java project. The child projects were fine. (note that the project hierarchy is only one level deep -- a root and it's children). Reverting back to 1.16 or earlier made the issue disappear.
Environment
- Operating System: Mac OS Ventura 13.13.1
- JDK version: 17 and 16
- Visual Studio Code version: 1.77.3
- Java extension version: 1.17
Steps To Reproduce
- Assume folder structure as shown above.
- Open an empty workspace
- click
Add folder to workspaceand selectchild_java_project_1 - project is added to workspace and it's recognized as a java project
- repeat for
child_java_project_2...child_java_project_n - all projects are recognized as java projects with full linking, debugging, etc, support.
- finally repeat for
root_java_project. It shows up in the "Java Projects" but it doesn't recognize that there's a pom in that root folder and consequently doesn't capture it as being a legit java project. - Revert back to 1.15 or 1.16 and it works.
I do see quite of few Stack Overflows in the Language Server Log file. Not sure if that's the cause.
VS Code Language Server Log file.txt
VSCode Client Logs.txt
Current Result
Expected Result
Additional Informations
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先复现 issue 中描述的嵌套 pom.xml 工作区结构,然后检查随附的 VS Code Language Server Log 和 VSCode Client Logs,以查找报告的 Stack Overflows。当根 Java 项目能够连同其 pom.xml 一起被识别,并且现有的子项目支持在 Java extension 1.17 中仍能正常工作时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- build-system, devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100