redhat-developer / redhat-developer/vscode-java

Status bar keeps showing "100% Starting Java Language Server"

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

Chưa có ai nhận issue này.

extension-start
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ả

The language server has been launched successfully, and all features are ready, but the message is pinned on the status bar. It's probably a racing condition, and it's not stably reproducible.

I've done some investigation to print out the notifications, and I find the sequence on my machine is usually as following:

[Starting]	30% Starting Java Language Server 
[Starting]	35% Starting Java Language Server 
[Starting]	100% Starting Java Language Server 
[Starting]	100% Starting Java Language Server 
[Started]	Ready
[Starting]	100% Starting Java Language Server 

You may notice that after a "started" notification, it still receives a "starting" notification.

But when I met the issue, the log looks like the following, indicating that previous notifications are not received by the callback.

[Starting]	100% Starting Java Language Server

So I guess if it's because: immediately after the languageClient onReady, the previous notifications have been sent, before the callback completes the registration.

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 tại src/extension.ts, ở các dòng 115-147, và lần theo callback languageClient.onReady cùng phần xử lý thông báo khởi động. Tái hiện hoặc kiểm tra chuỗi thông báo đã được báo cáo, sau đó xác nhận rằng thanh trạng thái không còn giữ ở 100% Starting sau khi máy chủ báo Ready.

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
devtools
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
52/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.