redhat-developer / redhat-developer/vscode-java

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

オープン
#834 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

extension-start
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

src/extension.ts の 115-147 行目から始め、languageClient.onReady コールバックと起動通知の処理を追跡してください。報告された通知シーケンスを再現または調査し、その後、サーバーが Ready を報告した後にステータスバーが 100% Starting のままにならないことを確認してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript
領域
devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
52/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。