redhat-developer / redhat-developer/vscode-java

NullPointerException in Jakarta EE Server Initialization

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

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ả

When clicking on variables in a Java project, an error occurs in the Jakarta EE server initialisation process. The error message indicates a NullPointerException during the execution of the org.eclipse.lsp4j.Diagnostic.getCode() method, specifically when trying to invoke org.eclipse.lsp4j.jsonrpc.messages.Either.getLeft(). As a result, the request textDocument/codeAction fails repeatedly, showing error code -32603. Additionally, in some cases, there are warnings for unmatched cancel notifications and errors indicating that the client is not running.

Environment
  • Operating System: MacOS (Ventura 13.4)
  • JDK version: temurin-11
  • Visual Studio Code version: 1.80.1
  • Java extension version: Latest at this time (1.20.0 I believe)
Steps To Reproduce
  1. Build project, open file.
  2. Click somewhere within the code.
  3. See error.
Current Result

2023-07-17 at 12 52 53@2x
2023-07-17 at 12 53 03@2x

Expected Result

No errors.

Additional Informations

java-server.log

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 bằng cách tái hiện lỗi với môi trường MacOS, JDK, VS Code và tiện ích mở rộng Java được liệt kê, sau đó kiểm tra java-server.log. Truy vết đường dẫn textDocument/codeAction xung quanh org.eclipse.lsp4j.Diagnostic.getCode() và Either.getLeft(). Được xem là hoàn tất khi việc nhấp vào dự án Java không còn tạo ra NullPointerException hoặc các lỗi -32603 lặp lại.

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, 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
35/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.