uv's Windows launchers in ~/.local/bin are reported as duplicate global Pythons
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem: On Windows, uv python install creates launcher executables (python.exe, python3.exe, python3.13.exe) in ~/.local/bin, which uv puts on PATH. PET reports each launcher as a separate GlobalPaths environment in addition to the Uv installation they launch, so a single interpreter appears four times in VS Code's environment list and picker.
The launchers are trampolines, not symlinks. When PET spawns one, it reports uv's minor-version junction (%APPDATA%\uv\python\cpython-3.13-windows-x86_64-none) as sys.prefix. Uv::try_from_managed_install only looked at the executable path and returned None for junction prefixes, so the launchers fell through to GlobalPaths.
> pet find --json (uv's ~/.local/bin on PATH)
Uv 3.13.15 %APPDATA%\uv\python\cpython-3.13.15-windows-x86_64-none\python.exe
GlobalPaths 3.13.15.final.0 %USERPROFILE%\.local\bin\python.exe
GlobalPaths 3.13.15.final.0 %USERPROFILE%\.local\bin\python3.13.exe
GlobalPaths 3.13.15.final.0 %USERPROFILE%\.local\bin\python3.exe
Environment: Windows 11, PET main @ 4ca7c03, uv 0.12.17, CPython 3.13.15 via uv python install 3.13 --default.
Before (VS Code):

Related: MSYS2 (microsoft/vscode-python-environments#1876) and the python.org Python Install Manager (%LOCALAPPDATA%\Python\bin aliases) are other Windows launchers that PET does not group with the installation they start; Windows find_symlinks is still a stub.
Steps to verify fix:
- On Windows, install uv and run
uv python install 3.13 --defaultsopython.exe,python3.exe, andpython3.13.exeexist in%USERPROFILE%\.local\bin, with that folder onPATH. - Run
pet find --json; verify a single environment: kindUv,%APPDATA%\uv\python\cpython-3.13.x-…\python.exe. - Run
pet resolve %USERPROFILE%\.local\bin\python3.13.exe --json; verify it returns that sameUvenvironment. - In VS Code (with microsoft/vscode-python-environments#1877), verify the interpreter appears once, under Global.
- Remove
~/.local/binfromPATHand rerunpet find; verify theUvenvironment is still reported.
Found by Copilot
- Ngôn ngữ chính
- Rust
- Star
- 207
- Fork
- 45
- Merge trung bình
- 1 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/python-environment-tools
-
pet server logs warnings as ANSI-colored stderr, shown as errorsCó thể đã có người làm @karthiknadig đã nhận 3 ngày trước. Đang mởbug
microsoft/python-environment-tools#571 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Free-threaded python3.13t interpreters are not discovered on LinuxCó thể đã có người làm @karthiknadig đã nhận 3 ngày trước. Đang mởbug
microsoft/python-environment-tools#569 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/python-environment-tools#537 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
debt
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
microsoft/python-environment-tools#538 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
microsoft/python-environment-tools#539 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/python-environment-tools
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
curator: add tutros/sbxmĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
ajeetraina/awesome-docker-sbx#220 ·
-
`helios / deploy`: switch zone wait in `deploy.sh` has almost no headroom over healthy startup timesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởTest Flake
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
oxidecomputer/omicron#11453 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/adaptive-apps#58 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày