redhat-developer / redhat-developer/vscode-java
Status bar keeps showing "100% Starting Java Language Server"
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia in src/extension.ts alle righe 115-147 e segui il callback languageClient.onReady e la gestione della notifica di avvio. Riproduci o esamina la sequenza di notifiche segnalata, quindi conferma che la barra di stato non rimanga più su 100% Starting dopo che il server segnala Ready.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, typescript
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 52/100