Skip to content

fix: resolve 4 Windows compatibility bugs in installer and CLI#26

Open
alipiomg wants to merge 1 commit intoLucasHJin:mainfrom
alipiomg:fix/windows-install-compat
Open

fix: resolve 4 Windows compatibility bugs in installer and CLI#26
alipiomg wants to merge 1 commit intoLucasHJin:mainfrom
alipiomg:fix/windows-install-compat

Conversation

@alipiomg
Copy link
Copy Markdown

Summary

Fixes 4 bugs that prevent clean installation on Windows (PowerShell 5.1, Python 3.12, Windows 11):

  • python3 Store alias: Wrap version check in try/catch so the Windows Store redirect for python3.exe doesn't cause a fatal error before python is tried
  • vit.exe blocked by Defender: Prefer python -m vit.cli over the unsigned vit.exe for Resolve script installation
  • UTF-8 em dash: Replace (U+2014) with -- to prevent PowerShell parse failures on files without BOM
  • Unicode arrows in CLI output: Replace (U+2192) with -> in print() calls to fix UnicodeEncodeError on cp1252 consoles

Test plan

  • Run irm .../install.ps1 | iex on a clean Windows 11 machine with Python from python.org
  • Verify python3 Store alias is skipped gracefully and python is used
  • Verify vit install-resolve succeeds via python module
  • Verify no encoding errors in terminal output
  • Verify macOS/Linux installation is unaffected (no behavioral changes on those platforms)

Fixes #25

🤖 Generated with Claude Code

1. Wrap python3 version check in try/catch to handle Windows Store
   redirect alias that causes a terminating error with ErrorActionPreference=Stop
2. Prefer python module over vit.exe for Resolve script installation,
   since unsigned pip-generated exe is blocked by Windows Defender
3. Replace em dash (U+2014) with ASCII -- to prevent UTF-8 parse
   failures in PowerShell without BOM
4. Replace Unicode arrows (U+2192) in print statements with ASCII ->
   to fix UnicodeEncodeError on cp1252 Windows consoles

Fixes LucasHJin#25

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

install.ps1: 4 Windows compatibility bugs prevent clean installation

1 participant