redhat-developer / redhat-developer/vscode-java
Package Does Not Exist Error; Project builds and Runs OK.
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ả
Building a simple HelloWorld app to test importing an external .JAR file
The Jar was built with an earlier version of the JDK but builds on the command line without issues.
The linter indicates that the import class "Media" does not exist even though the jar file has been referenced.
The App runs OK without any errors. Where are these errors being reported from? It looks as it's a Red Hat response.
Environment
- Operating System: Windows 10
- JDK version: 17.0.13
- Visual Studio Code version: 1.94.2
- Java extension version: 1.35.1 (Language Support for Java by Red Hat.
Steps To Reproduce
Just load the folder containing the HelloWorld.java file into VSCode and the errors show up straight away.
Run the app with or without the debugger and it runs ok.
Source, (java file):
HelloWorld.txt
settings:
settings.json
Current Result
indicates that package does not exist event though it builds ok.
Expected Result
no linting errors.
Additional Information
let me know what else I can provide
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 bằng cách tải thư mục vào VS Code cùng với mã nguồn HelloWorld.java và settings.json được đính kèm, sau đó kiểm tra các lỗi và Log.pdf. So sánh các chẩn đoán package không tìm thấy của trình chỉnh sửa với hành vi build và runtime trên dòng lệnh. Được xem là hoàn tất khi extension Java nhận diện được JAR bên ngoài và không xuất hiện các lỗi linting tương ứng.
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
- 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
- 25/100