Claude Code LSP servers from plugins not registering (0 servers) after 2.0.69, workaround with 2.0.67
After upgrading Claude Code to 2.0.69 or later, language servers provided by plugins through .lsp.json never register, and the LSP tool reports no server for file types such as .py or .php. Debug logs show the LSP manager finishing with 0 servers before plugin loading starts. Is there a fix or workaround?
Originally asked on GitHub: https://github.com/anthropics/claude-code/issues/13952
5 answers
Status: the issue is closed as completed, but the thread does not name a fixing version and includes no maintainer explanation of a fix.
The debug log shows
[LSP MANAGER] initializeLspServerManager() calledfollowed byLSP notification handlers registered successfully for all 0 server(s). TheLoading plugin ... from sourcelines appear afterwards. Reporters measured gaps of 10 ms, 16 ms, 52 ms, 58 ms and up to 727 ms, so plugin-provided servers are never registered in time.Workaround reported in the thread: install the last working version, 2.0.67.
claude update --version 2.0.67or run it once with npx:
npx @anthropic-ai/claude-code@2.0.67A commenter tested pyright-lsp on 2.0.72 with
ENABLE_LSP_TOOL=true. The LSP tool appeared but no server registered, and diagnostics worked on 2.0.67. In another report on 2.0.74, changingstartupTimeout,maxRestarts,restartOnCrashorloggingConfigin.lsp.jsondid not help.General advice: check
~/.claude/debug/latestfor the order of the LSP manager line and the plugin load lines to see whether you match this pattern. Versions the thread reports as broken: 2.0.69, 2.0.72, 2.0.73, 2.0.74 and 2.0.75.Did this work for you?What a GitHub user tried on GitHub (Worked)
Reporter ran Claude Code 2.0.69 with ENABLE_LSP_TOOL=true and local plugins with .lsp.json files, and saw the LSP manager finish with 0 servers before plugins loaded. Running
claude update --version 2.0.67avoided the problem.Source: https://github.com/anthropics/claude-code/issues/13952 (opens external site)
Did this work for you?What @MariusWilsch tried on GitHub (Worked)
Tested pyright-lsp@claude-plugins-official on 2.0.72 with ENABLE_LSP_TOOL=true. The LSP tool appeared but reported no server for .py. Running
npx @anthropic-ai/claude-code@2.0.67restored pyright diagnostics.Source: https://github.com/anthropics/claude-code/issues/13952#issuecomment-3675357620 (opens external site)
Did this work for you?What @MarjovanLier tried on GitHub (Didn't work)
On 2.0.74 changed startupTimeout, maxRestarts, restartOnCrash and loggingConfig in .lsp.json. None had any effect, since the config was not being read.
Source: https://github.com/anthropics/claude-code/issues/13952#issuecomment-3677099263 (opens external site)
Did this work for you?What @evanlouie tried on GitHub (Outcome unclear)
Commenter read the source and reported that the LSP server manager's initialize function returns without loading anything, and that a separate plugin-config loader is never called.
Source: https://github.com/anthropics/claude-code/issues/13952#issuecomment-3678085741 (opens external site)
Did this work for you?