redhat-developer / redhat-developer/vscode-java
The declared package "package" does not match the expected package ""- ( Java(536871240) )
未关闭
还没有人认领这个 Issue。
classpath
compile
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
When I package the Java file and I package it with the name of the upper directory, it shows the error at title.
Environment
- Operating System: Windows 10
- JDK version: 15
- Visual Studio Code version: Latest Stable Build
- Java extension version: Latest
Current Result
error highlight
Expected Result
No error highlight
Additional Informations
It works fine when I compile and run but it highlights the name and shows a error in editor
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在所报告的 Windows 10、JDK 15 和 Java extension 设置下,于 VS Code 中复现 package 名称诊断,并将编辑器中的结果与编译和运行进行比较。跟踪 Java extension 的诊断处理,以确定为什么一个有效的 package 文件会被标记为错误;当错误的高亮显示消失,同时编译和运行仍然正常时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- devtools, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100