redhat-developer / redhat-developer/vscode-java

"Classpath is incomplete" warning with Maven project

Đang mở
#654 11 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Maven
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
  1. Create a blank maven project in an empty folder using the context menu "Generate from Maven Archetype"
  2. 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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. 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

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.