Skip to content

A language server that fails to start takes away the features of the other language servers of the file #2158

Done

Description

@lagergren

What happens

For a file that several language servers map, LanguageServiceAccessor.getLanguageServers(...) starts each matching language server and connects the file to it, all in one CompletableFuture.allOf(...).

Each server's future ends with .exceptionally(LanguageServiceAccessor::handleFutureException), and handleFutureException returns null only for a cancellation (CancellationException, ProcessCanceledException). It rethrows every other exception.

So when one of the servers fails to start, for instance with a CannotStartServerException, allOf fails, and with it the whole call. A feature that asks for the file's language servers then gets none, including the servers that started fine.

This came up while investigating the flaky LSPSemanticTokenDocumentationProviderTest. A probe ran two language servers for a file, with the second failing its initialize. Ctrl+hover on the first server's semantic tokens returned no hint, with a CannotStartServerException.

handleFutureException came in with 44c39b9 (2026-03-30), which stopped swallowing exceptions in these futures.

Expected

A language server that fails to start is left out for that call, with its error reported as today, and the other language servers still serve the file.

Activity

  1. added
    bug
    on Nov 23, 2026
  2. added this to the 0.30.2 milestone on Nov 23, 2026
  3. added a commit that references this issue on Nov 24, 2026
    937c2a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions