redhat-developer / redhat-developer/vscode-java
"Classpath is incomplete" warning with Maven project
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 546
- Merge trung bình
- 20 giờ 1 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
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)
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với threadtest.zip đính kèm và App.java đã tạo, sau đó so sánh mục trong nhật ký máy chủ với hướng dẫn được liên kết về cảnh báo “Classpath is incomplete”. Nếu có thể, hãy tái hiện cảnh báo bằng các phiên bản VS Code, Java extension, JDK và macOS được liệt kê; hoàn tất khi dự án Maven trống mở mà không xuất hiện popup.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, vscode
- Lĩnh vực
- build-system, devtools
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100