microsoft / microsoft/vscode-python-environments

Startup stalls and Python environments appear missing during activation

Đang mở
#1,434 4 bình luận 1 reaction 1 người được giao Xem trên GitHub

@eleanorjboyd đang làm issue này rồi.

Từ ngày 3/4/2026.

bug important meta
Ngôn ngữ chính
TypeScript
Star
138
Fork
62
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
35

Mô tả

## Problem
When VS Code opens a Python workspace, the extension can stall during startup and some environment managers fail to register. Users then see missing or incorrect Python environments until reload.

## What users might see

- Slow startup or temporary UI freeze when opening a project
- High CPU during startup
- Environment list missing expected entries (especially non-system managers)
- Environment selection/activation not working right away
- In some cases, repeated terminal/process churn

## How it arises

- On activation, multiple managers register in parallel.
- Some managers fall back to PET-based detection during registration.
- If PET is still cold/initializing (common on slower, remote, or containerized setups), requests can timeout.
- Timeout/retry behavior can cascade, leaving managers unregistered for that session.

## Steps to reproduce

- Open a Python project in a fresh VS Code session.
- Use a machine/workspace with slower startup conditions (remote, container, or heavy load).
- Wait for Python Environments extension activation.
- Open the environment picker/tree.
- Observe startup delay and potentially missing managers/environments.
- Expected behavior
- Startup remains responsive and manager registration does not block or fail; environments appear reliably.

## Actual behavior

- Startup can hang briefly, and some managers/environments are unavailable until another refresh or reload.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.