redhat-developer / redhat-developer/vscode-java

VSCode Java doesn't handle .classpath files properly

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

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

stale
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ả

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
  1. Copy, write, or otherwise create an Eclipse-style .classpath file, specifying a src directory.
  2. Create an empty foo.java file 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.)

bugrepro.zip

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 bugrepro.zip được đính kèm và tái hiện hành vi bằng cách sử dụng tệp .classpath theo kiểu Eclipse, một thư mục src và foo.java trống. Kiểm tra cách VSCode Java extension xử lý .classpath và thông tin “Classpath is incomplete”; hoàn tất khi popup không còn xuất hiện và go-to-definition hoạt động cho dự án.

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, typescript
Lĩnh vực
developer-experience, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 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
38/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.