microsoft / microsoft/vscode-python-environments

Startup stalls and Python environments appear missing during activation

Ouverte
#1,434 4 commentaires 1 réaction 1 personne assignée Voir sur GitHub

@eleanorjboyd y travaille déjà.

Depuis le 3/4/2026.

bug important meta
Langage dominant
TypeScript
Étoiles
138
Forks
62
Merge moyen
1 j 4 h
PR mergées (30 j)
35

Description

## 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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.