microsoft / microsoft/vscode-python-environments

Startup stalls and Python environments appear missing during activation

未关闭
#1,434 4 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

@eleanorjboyd 已经在做这个了。

开始于 2026年4月3日。

bug important meta
主要语言
TypeScript
星标
138
派生
62
平均合并
1 天 4 小时
30 天内合并 PR
35

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。