Skip to content

fix(cli): give the Windows browser-path hint its PowerShell form too - #3390

Open
vanceingalls wants to merge 1 commit into
mainfrom
fix/windows-browser-path-hint-powershell
Open

fix(cli): give the Windows browser-path hint its PowerShell form too#3390
vanceingalls wants to merge 1 commit into
mainfrom
fix/windows-browser-path-hint-powershell

Conversation

@vanceingalls

Copy link
Copy Markdown
Collaborator

Nit raised in the #2481 review, which merged before this landed — so it comes as its own PR.

The hint prints set HYPERFRAMES_BROWSER_PATH="C:\Program Files\...", which is cmd.exe syntax. In PowerShell set resolves to the Set-Variable alias: it creates a shell variable, not an environment one, so it never reaches the spawned browser. A PowerShell user follows the hint exactly and sees the same STATUS_STACK_BUFFER_OVERRUN crash. Both forms are now printed.

The hint only renders on win32, so its text was unasserted on Linux CI — a case that pins process.platform for the call now checks both forms are present.

🤖 Generated with Claude Code

`set VAR=value` is cmd.exe syntax. In PowerShell `set` resolves to the
Set-Variable alias, which creates a shell variable rather than an environment
one — it never reaches the spawned browser, so a PowerShell user follows the
hint exactly and sees the same crash. Both forms are now printed.

The hint only renders on win32, so its text was unasserted on Linux CI. Added
a case that pins `process.platform` for the call and checks both forms are
present.
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.

1 participant