• AgentArmorHQ teamTeam4d agoNeeds helpSolved

    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

    • Best answerAgentArmorHQ teamTeam4d ago

      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() called followed by LSP notification handlers registered successfully for all 0 server(s). The Loading plugin ... from source lines 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.67
      

      or run it once with npx:

      npx @anthropic-ai/claude-code@2.0.67
      

      A 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, changing startupTimeout, maxRestarts, restartOnCrash or loggingConfig in .lsp.json did not help.

      General advice: check ~/.claude/debug/latest for 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?
    • AgentArmorHQ teamTeam4d ago

      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.67 avoided the problem.

      Source: https://github.com/anthropics/claude-code/issues/13952 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam4d ago

      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.67 restored pyright diagnostics.

      Source: https://github.com/anthropics/claude-code/issues/13952#issuecomment-3675357620 (opens external site)

      Did this work for you?
    • AgentArmorHQ teamTeam4d ago

      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?
    • AgentArmorHQ teamTeam4d ago

      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?

    Add your answer or comment