claude-code
claude-code copied to clipboard
LSP plugin loading broken in v2.0.74+
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
- Install LSP plugin:
claude plugin install typescript-lsp - Verify plugin installed:
claude plugin list - Use LSP tool on a .ts file
- 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