redhat-developer / redhat-developer/vscode-java
"Classpath is incomplete" warning with Maven project
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I get the "Classpath is incomplete" popup warning, but can't seem to figure out the magic combination of rain dances required to make it "work".
Environment
- Operating System: Mac OS 10.13.6
- JDK version: 1.8.0_144
- Visual Studio Code version: 1.27.2
- Java extension version: 0.3.0
Steps To Reproduce
- Create a blank maven project in an empty folder using the context menu "Generate from Maven Archetype"
- Open the generated
App.java
Sample project attached
threadtest.zip
The only relevant log entry in server log is:
!ENTRY org.eclipse.jdt.ls.core 1 0 2018-09-27 11:53:20.416
!MESSAGE Classpath is incomplete. Only syntax errors will be reported for file:///<REDACTED>/threadtest/src/main/java/threadtest/App.java
Current Result
VS Code pops up the "Classpath is incomplete" warning
Expected Result
Based on the suggestions here, I expected to not get this warning. It's worth noting however, that the language on this page is a little confusing. Particularly this:
Whenever a java file is opened, that does not belong to a project
VS Code doesn't have a concept of a "project". Are you talking about a Maven project? Folks new to either VS Code or your extension (like me) might be confused by what this means (in-fact I am still confused, because I think I have a project but presumably I don't)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从附加的 threadtest.zip 和生成的 App.java 开始,然后将服务器日志条目与链接的“Classpath is incomplete”警告指南进行比较。如果可用,请使用所列出的 VS Code、Java extension、JDK 和 macOS 版本重现该警告;当空白 Maven 项目打开时不再出现弹窗,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- build-system, devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100