Skip to content

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

@Eskibear

Description

@Eskibear

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions