You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`editors/vscode/src/serverResolver.ts:73` always tries `ripr` on PATH as
the final fallback in the documented resolution order
(`ripr.server.path` > bundled > cached > downloaded > PATH > actionable
error). The probe at `serverResolver.ts:120-155`:
spawns ` --version` with `shell: false` (`serverResolver.ts:122`)
has a 5-second timeout (`START_TIMEOUT_MS = 5000`, line 9)
On Windows, `cp.spawn` with `shell: false` does not do PATHEXT
resolution. A user with `ripr.bat` or `ripr.cmd` on PATH (the common
case for Scoop / Chocolatey / a manually-added shim) hits
"could not start" (`serverResolver.ts:138`) with no hint that PATHEXT is
the problem. They are sent down the "install with cargo install ripr" path
even though `ripr` is already installed and runnable from a terminal.
Fix
On win32, either:
Pass `shell: true` for the PATH-fallback probe (simplest, but inherits
shell quoting concerns), or
Iterate PATHEXT extensions (`.exe`, `.bat`, `.cmd`, `.ps1`) for
the bare `ripr` name and probe each.
Option 2 matches VS Code's own `which` behavior and avoids the shell-quoting
footgun.
Evidence
`editors/vscode/src/serverResolver.ts:73` — PATH is the final fallback
#1612 - fix(lsp): reject ambiguous workspace roots [merged] #2059 - fix(vscode): point retry fallback at the registered 'ripr: Restart Server' command (#2001) [merged] #2060 - fix(vscode): auto-start when a workspace folder appears after no-workspace start (#2015) [open] #2063 - fix(vscode): auto-start the server when a workspace folder appears (#2015) [open] #2065 - ux(vscode): show download progress and disclose the release fetch (#2002) [open]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Verified editors/vscode/src/serverResolver.ts:120-155: probeCandidate still spawns with cp.spawn(command, ['--version'], { shell: false }) (line 122), hardcoded with no win32 branch and no PATHEXT iteration. The PATH fallback at line 73 (probeCandidate('ripr', 'path', ...)) is unchanged.
Fixed in the linked PR via option 1: the PATH-fallback probe uses shell: true on win32 only. Rationale for option 1 over PATHEXT iteration: .bat/.cmd/.ps1 shims need a shell to execute regardless, and the spawned command is the constant ripr --version — no user input reaches the shell, so the quoting concern does not apply. Explicit-path probes keep shell: false. vscode-compile clean.
Activity
coderabbitai commentedon Jul 21, 2026
🔗 Related PRs
#1612 - fix(lsp): reject ambiguous workspace roots [merged]
#2059 - fix(vscode): point retry fallback at the registered 'ripr: Restart Server' command (
#2001) [merged]#2060 - fix(vscode): auto-start when a workspace folder appears after no-workspace start (
#2015) [open]#2063 - fix(vscode): auto-start the server when a workspace folder appears (
#2015) [open]#2065 - ux(vscode): show download progress and disclose the release fetch (
#2002) [open]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Jul 21, 2026
Status: still open on current main
Verified
editors/vscode/src/serverResolver.ts:120-155:probeCandidatestill spawns withcp.spawn(command, ['--version'], { shell: false })(line 122), hardcoded with no win32 branch and no PATHEXT iteration. The PATH fallback at line 73 (probeCandidate('ripr', 'path', ...)) is unchanged.Evidence
editors/vscode/src/serverResolver.ts:120-155—shell: falsehardcoded.editors/vscode/src/serverResolver.ts:73— PATH fallback uses the same unconfined probe.EffortlessSteven commentedon Jul 21, 2026
Fixed in the linked PR via option 1: the PATH-fallback probe uses shell: true on win32 only. Rationale for option 1 over PATHEXT iteration: .bat/.cmd/.ps1 shims need a shell to execute regardless, and the spawned command is the constant
ripr --version— no user input reaches the shell, so the quoting concern does not apply. Explicit-path probes keep shell: false. vscode-compile clean.fix(vscode): avoid the literal spawn symbol in the PATHEXT comment (#…
fix(vscode): carry shell launch semantics from the PATH probe to the …
fix(vscode): probe the PATH fallback through the shell on win32 (#2079)…