Skip to content

Prepend the server launch's PATH through the inherited entry - #62

Merged
vbucc merged 2 commits into
mainfrom
fix/issue-52-server-launch-path
Oct 7, 2026
Merged

vbucc merged 2 commits into
mainfrom
fix/issue-52-server-launch-path

Conversation

@vbucc

@vbucc vbucc commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Fixes #52. This is the part upstream v10.3.0 left open.

Upstream da91669 (merged in #61) added ExecPath.SetPathVariable, which writes PATH through whatever spelling the inherited environment uses. It also routed ExecPath.TryRun and ExecPath.FindInPathWindows through it. ServerManagementService.StartLocalHttpServer still wrote EnvironmentVariables["PATH"] directly. On Windows the inherited entry is Path, and Mono's dictionary is case-sensitive, so the uv/uvx prepend for the server launch went into a second entry the server never read. The launch now goes through SetPathVariable, which becomes internal.

  • Prepend the server launch's PATH through the inherited entry

Tests: new EditMode StartLocalHttpServer_PathPrepend_WritesThroughTheInheritedPathEntry gives the inherited entry the Windows spelling. It was seen failing before the fix.

🤖 Generated with Claude Code

vbucc and others added 2 commits October 7, 2026 17:18
StartLocalHttpServer wrote its uv/uvx PATH prepend to EnvironmentVariables["PATH"]. Mono's
EnvironmentVariables is case-sensitive and Windows spells the inherited entry "Path", so the
prepend went into a second entry and the server resolved commands with the original (#52).

Route it through ExecPath.SetPathVariable, which upstream added for TryRun and
FindInPathWindows and which writes through the existing entry whatever its casing.

The new EditMode test gives the inherited entry the Windows spelling and failed before
the fix with "got: PATH, Path".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vbucc
vbucc merged commit b3b4be4 into main Oct 7, 2026
0 of 2 checks passed
@vbucc
vbucc deleted the fix/issue-52-server-launch-path branch October 7, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: PATH prepends add a second PATH next to Path, so children resolve commands with the original (Mono's case-sensitive EnvironmentVariables)

1 participant