redhat-developer / redhat-developer/vscode-java
Status bar keeps showing "100% Starting Java Language Server"
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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