redhat-developer / redhat-developer/vscode-java
False positive warnings and errors
未关闭
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
When loading a java project, the extension reports hundreds of warnings and errors. once those files are opened, the nonsenese warnings and errors disappear.
If at any point all java files are closed, the nonsense warnings and errors reappear.
The only way to get rid of them is to open every file they appear in.
Environment
- Operating System: MacOS 14.5
- Visual Studio Code version: 1.95.0
- Java extension version: 1.35.1
$ java -version
openjdk version "22.0.2" 2024-07-16
OpenJDK Runtime Environment Zulu22.32+15-CA (build 22.0.2+9)
OpenJDK 64-Bit Server VM Zulu22.32+15-CA (build 22.0.2+9, mixed mode, sharing)
Steps To Reproduce
- Open a relatively large java project
- observe nonsense errors and warnings
Dozens of warnings for file ArrayList.java
No issues found in file after opening
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在一个相对较大的 Java 项目中,使用报告中的 macOS、VS Code、Java extension 和 OpenJDK 版本重现该问题。比较打开受影响文件(包括 ArrayList.java)前后的诊断结果;当关闭所有 Java 文件后,错误的警告和错误不再重新出现时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- developer-experience, devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100