redhat-developer / redhat-developer/vscode-java
VSCode Java doesn't handle .classpath files properly
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Environment
- Operating System: Windows
- JDK version: 1.8.0_171
- Visual Studio Code version: 1.25.1
- Java extension version: 0.29.0
Steps To Reproduce
- Copy, write, or otherwise create an Eclipse-style
.classpathfile, specifying asrcdirectory. - Create an empty
foo.javafile in that directory
Current Result
Popup: foo.java isn't on the classpath.
Expected Result
No popup, working go-to-definition and similar project handling.
Additional Information
It is not entirely clear from the website that 'More information' leads to what precisely needs to be copied for the vscode-java to properly build the classpath, so if the answer turns out to be "you need more than just the .classpath", the issue just changes to "the documentation on 'Classpath is incomplete' does not provide sufficient information to actually resolve the issue."
(Also, note that the error is different from that one given when there is no classpath present. vscode-java clearly sees that there's a file there, but isn't reading it correctly.)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从附加的 bugrepro.zip 开始,使用 Eclipse-style .classpath 文件、一个 src 目录和空的 foo.java 重现该行为。检查 VSCode Java extension 如何处理 .classpath 和“Classpath is incomplete”信息;完成的标准是弹窗不再出现,并且 go-to-definition 对该项目有效。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100