claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

LSP plugin loading broken in v2.0.74+

Open Piotr1215 opened this issue 2 weeks ago • 1 comments

Description

LSP plugins install successfully but the LSP manager doesn't index/load them. The LSP tool exists and is documented, but always returns "No LSP server available for file type".

Environment

  • Claude Code versions tested: 2.0.74, 2.0.76
  • OS: Linux (NixOS)
  • All LSP binaries installed and in PATH

Steps to Reproduce

  1. Install LSP plugin: claude plugin install typescript-lsp
  2. Verify plugin installed: claude plugin list
  3. Use LSP tool on a .ts file
  4. Get error: "No LSP server available for file type: .ts"

Expected Behavior

LSP tool should use typescript-language-server for .ts files.

Actual Behavior

"No LSP server available for file type: .ts" for all file types, regardless of which LSP plugins are installed.

Troubleshooting Attempted

  • Verified all LSP binaries in PATH (typescript-language-server, gopls, rust-analyzer, pyright-langserver, lua-language-server)
  • Verified .lsp.json files exist with correct structure in plugin cache
  • Tried ENABLE_LSP_TOOL=1 environment variable
  • Tried --plugin-dir with manually created plugin
  • Created proper plugin structure: .claude-plugin/plugin.json + .lsp.json

Plugin Structure Verified

~/.claude/plugins/cache/claude-plugins-official/typescript-lsp/1.0.0/
├── .claude-plugin/
│   └── plugin.json
├── .lsp.json
└── README.md

.lsp.json content:

{
  "typescript": {
    "command": "typescript-language-server",
    "args": ["--stdio"],
    "extensionToLanguage": {
      ".ts": "typescript",
      ".tsx": "typescriptreact",
      ".js": "javascript",
      ".jsx": "javascriptreact"
    }
  }
}

Suspected Root Cause

Based on community analysis: the LSP manager initialize function may be missing a call to index/register LSPs from plugins.

Additional Context

  • The LSP tool is available and documented
  • Plugin installation succeeds
  • Plugin appears in claude plugin list
  • Just the connection between plugins and LSP manager appears broken

Piotr1215 avatar Dec 24 '25 09:12 Piotr1215