redhat-developer / redhat-developer/vscode-java
VSCode Java doesn't handle .classpath files properly
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ả
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.)
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 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