Skip to content

git clean in a python project triggers invalid python notification #1037

Open

Description

In this scenario there is an existing valid environment (created with a .gitignore in it). and performing git clean removes that environment. This causes python extension to detect that the environment has changed. Python extension then tries to look up info to get data on the environment. But there is no environment and that leads to invalid environment notification.

Activity

  1. eleanorjboyd commented on Dec 8, 2025

    @eleanorjboyd
    Contributor

    seems more relevant to the python environments extension now

  2. eleanorjboyd commented on Sep 30, 2026

    @eleanorjboyd
    Contributor

    updating as now the problem is more concretely "Deleting the selected venv with git clean -fdx leaves stale interpreter selection"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bugconfirmation-pendingThe issue needs to be confirmed through a maintainer reproducing the bug.needs PR

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions