Skip to content

fix(pwsh/gui): empty init iex + Host Environment Ready on Windows; stack refresh - #9

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/fix-pwsh-init-empty-iex-3406
Aug 13, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/fix-pwsh-init-empty-iex-3406

Conversation

@ImYourBoyRoy

Copy link
Copy Markdown
Owner

Summary

Fixes two related Windows UX bugs and refreshes the dependency/CI stack to current stables.

1. PowerShell profile: empty Invoke-Expression

After the pyenv function shadowed pyenv.exe, (pyenv init - pwsh) used console passthrough + Out-Null, so a second profile init (or re-source) captured nothing and PS 7.6 failed with Cannot bind argument to parameter 'Command' because it is an empty string.

  • Pipeline-capture init / virtualenv-init in the pwsh wrapper
  • Guard empty iex in recommended profile snippets (docs/GUI/installer)
  • Installer skips appending a duplicate init block when one already exists

2. Host Environment “Needs attention” on Windows

Unrelated to the pwsh bug: Host Environment used any doctor Warn for its verdict. Desktop GUI launches often lack User PATH, so pyenv-bin-on-path / shims-on-path / shim selection warns marked a healthy NuGet host as Needs attention.

  • Verdict now only considers install-readiness checks (toolchain blockers + root-directory / pyenv-win conflicts)
  • Shell PATH / shim / selection health stay in doctor + shell cards
  • GUI Host Environment panel now lists install warnings when present

3. Latest stack / CI plugins (v0.2.37)

Area Update
Rust stable 1.97.1 (toolchain channel)
Tauri already latest 2.11.5 / tauri-build 2.6.3
rmcp 2.2.0 → 3.1.2
clap / thiserror / toml latest minors
CI setup-python@v7 (3.13), setup-node@v7 (24), Swatinem/rust-cache@v2
gui-a11y axe-core 4.13.0, jsdom 30.0.1

Validation

  • cargo test -p pyenv-core --lib (161 ok)
  • cargo test -p pyenv-mcp / pyenv-cli
  • cargo clippy -p pyenv-core -p pyenv-cli -p pyenv-mcp -- -D warnings
  • check-version-sync, check-gui-patterns, gui-a11y

After merge

Rebuild/reinstall on the Windows machine so the new pwsh init function and Host Environment logic ship; optional: replace any bare iex ((pyenv init - pwsh)…) profile lines with the guarded snippet from pyenv init pwsh.

Open in Web Open in Cursor 

cursoragent and others added 2 commits August 13, 2026 07:17
PowerShell's pyenv wrapper used console passthrough for init, so a second
`iex ((pyenv init - pwsh)...)` (duplicate profile lines or re-init) captured
nothing and failed on PS 7.6. Pipeline-capture init/virtualenv-init, guard
empty iex in profile snippets, skip duplicate installer blocks, bump 0.2.36.

Co-authored-by: I'm Your Boy Roy <ImYourBoyRoy@users.noreply.github.com>
Windows Host Environment was "Needs attention" whenever doctor warned about
process PATH/shims/selection—common for desktop GUI launches even when
install readiness is fine. Verdict now uses install-relevant checks only,
and the panel surfaces install warnings.

Also bump to v0.2.37: rmcp 3.1.2, clap 4.6.6, thiserror/toml minors,
setup-python@v7 + Python 3.13, setup-node@v7 (Node 24) for a11y, rust-cache,
axe-core/jsdom latest. Tauri already at 2.11.5 / Rust stable 1.97.1.

Co-authored-by: I'm Your Boy Roy <ImYourBoyRoy@users.noreply.github.com>
@ImYourBoyRoy
ImYourBoyRoy marked this pull request as ready for review August 13, 2026 07:34
@cursor
cursor Bot merged commit bf51e50 into main Aug 13, 2026
7 checks passed
@cursor
cursor Bot deleted the cursor/fix-pwsh-init-empty-iex-3406 branch August 13, 2026 07:45
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.

2 participants