redhat-developer / redhat-developer/vscode-java

Java package taking 100% CPU under very specific conditions

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

@snjeza đang làm issue này rồi.

Từ ngày 30/1/2026.

performance upstream
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ả

Here are the minimal conditions needed to reproduce this issue:

  • A Java package has a dependency on Lombok.
  • A method uses Lombok's @NonNull on a parameter.
  • The first line of the method is a comment.
  • The line after the comment is NOT empty.
  • The lombok.nonNull.exceptionType = JDK option is set in a lombok.config file.

If you open this project in VS Code with the redhat.java extension, any modification in that same file that does not break the above criteria (such as adding a comment on the last line and saving) will take 100% of one CPU core. Do it 5 times, and it will take 5 cores!

This high CPU usage stops after a while, but it makes the whole machine unresponsive if you make several modifications quickly.

You can use this minimal repo to reproduce the bug: ipkiss42/vscode-java-4052.

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.

Đánh giá

Issue này chưa được đánh giá.

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.