microsoft / microsoft/vscode-python-environments

`git clean` in a python project triggers invalid python notification

Open
#1,037 1 comment 0 reactions 0 assignees View on GitHub
bug confirmation-pending needs PR
Dominant language
TypeScript
Stars
138
Forks
62
Avg merge
1d 4h
Merged PRs (30d)
35

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.

Contributor guide

Open the contributing guide

Research direction

The payload names no files, tests, or entry points. Reproduce the sequence with a valid Python environment, a .gitignore, and git clean; trace the environment-change handling and verify that removing the environment no longer produces an invalid-environment notification.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python, typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.