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

[BUG] LSP plugins don't work on Windows

Open autumndawn opened this issue 10 months ago • 1 comments

[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.

autumndawn avatar Jan 09 '26 07:01 autumndawn

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.

boostvolt avatar Jan 16 '26 22:01 boostvolt