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
Fix PowerShell $PID variable conflict in start-lemonade.ps1 (#331)
## Summary
Fixes CI test failure on machines with stricter PowerShell
configurations by renaming a variable that conflicted with PowerShell's
read-only `$PID` automatic variable.
## Problem
The lemonade smoke test was failing on one specific machine with:
```
Error: Cannot overwrite variable PID because it is read-only or constant.
```
The script used `$pid` (line 69) to store a process ID during port
availability checking. PowerShell's `$PID` is a read-only automatic
variable (current process ID), and PowerShell variable names are
case-insensitive, so `$pid` and `$PID` refer to the same variable.
## Solution
Renamed `$pid` → `$processId` to avoid the conflict.
## Testing
- [x] Local testing: Script runs without errors
- [x] CI testing: Needs verification on stx-test machine
## Impact
- Low risk: Simple variable rename in error handling code
- Fixes intermittent CI failures on machines with stricter PowerShell
enforcement
- No functional changes to the script behavior
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Code <claude-code@anthropic.com>
Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
0 commit comments