redhat-developer / redhat-developer/vscode-java
Compilation errors on a working codebase as soon as I install this extension
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ả
As soon as I install this extension I start getting all kind of compilation errors in the PROBLEM view. Errors that don't make sense like saying it can't find a variable that's clearly defined.
If I close VSCode or uninstall the extension it starts working again.
Maybe something to do with classpath? Please help me figure this out, I'll pulling my hair out over this for days.
I have tried cleaning the workspace directory already.
Environment
- Operating System: MacOS BigSur
- JDK version: 8(Maven tells me 1.8)
- Visual Studio Code version: 1.54.3
- Java extension version: v0.76.0
Steps To Reproduce
- Open VSCode with extension installed
- Go to the terminal(either os terminal or VSCode terminal) and run
mvn clean verify install
Sample project to reproduce the error
Logs
Current Result
Bunch of build errors
Expected Result
No build errors since this is a healthy project when it doesn't have the extension installed.
Additional Informations
- Works normally with eclipse open.
- Works normally with VSCode open but without this extension installed(I can install everything else in the https://github.com/Microsoft/vscode-java-pack). Meaning this is, indeed, the culprit.
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
Tái hiện sự cố với dự án mẫu segmentio/analytics-java bằng mvn clean verify install trên các phiên bản macOS, JDK 8, VS Code và tiện ích mở rộng Java đã nêu. So sánh chế độ xem Problems và hành vi build khi đã cài đặt tiện ích mở rộng, đồng thời kiểm tra các log được liên kết. Được xem là hoàn tất khi dự án đang hoạt động bình thường không còn nhận các lỗi biên dịch không đáng có trong khi tiện ích mở rộng được bật.
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
- developer-experience, devtools
- 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
- 25/100