redhat-developer / redhat-developer/vscode-java

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

Open
#834 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

extension-start
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/extension.ts at lines 115-147 and trace the languageClient.onReady callback and startup notification handling. Reproduce or inspect the reported notification sequence, then confirm that the status bar no longer remains at 100% Starting after the server reports Ready.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.