You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A language server that fails to start takes away the features of the other language servers of the file #2158
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
fix: a language server that fails to start no longer takes away the f…