claude-code-lsps
claude-code-lsps copied to clipboard
[BUG] LSP plugins don't work on Windows
[BUG] LSP plugins don't work on Windows
Problem
On Windows, LSP plugins fail with spawn ENOENT error:
plugin:vtsls:typescript: spawn vtsls ENOENT
plugin:pyright:python: spawn pyright-langserver ENOENT
Cause
Windows npm installs create .cmd files, but the plugin uses direct command names which Node.js spawn() can't execute.
Solution
Change .lsp.json from:
"command": "vtsls",
"args": ["--stdio"]
To:
"command": "cmd",
"args": ["/c", "vtsls", "--stdio"]
Same fix needed for pyright and other LSP plugins.
This is a Claude Code client limitation. It should handle .cmd wrappers on Windows transparently. Adding cmd /c to .lsp.json would break Linux/macOS. Please report at https://github.com/anthropics/claude-code/issues.