redhat-developer / redhat-developer/vscode-java
Problems (red) on Java files/packages mostly after cleaning workspace
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I have a problem where Java files and packages in vscode stay red showing a problem. This happens mostly after cleaning workspace.
I use workspaces with many different maven projects in each and it occures in all of them.
The problems shown in the problems view are The import foo.bar cannot be resolved and MyJavaClass cannot be resolved to a type. I can only fix this, if I open every single file once. Then the problmes go away automatically, but this is really annoying to do.
Environment
- Operating System: Windows 10 20H2
- JDK version:
- Visual Studio Code version: 1.69.2
- Java extension version: 1.9.0
Steps To Reproduce
Clean workspace with multiple folders of multimodule maven projects. At least using my projects this happens.
Current Result
VS Code showing a bunch of problems and red projects

Expected Result
No problems in VS Code and no red projects.
Additional Informations
No more hints i can give.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用包含多个文件夹和多模块 Maven 项目的干净 VS Code 工作区,在所述的 Windows 10、VS Code 1.69.2 和 Java extension 1.9.0 环境中复现该报告。确认 import 和类型是否在每个文件都被打开之前仍保持未解析;无需打开每个文件,只有 Problems view 和项目标记清除后才算完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100