Skip to content

Create environment with pre-existing .venv #21878

Closed
@karthiknadig

Description

@karthiknadig

Refs: #21827

Complexity: 3

Create Issue


Requirements

  1. Install latest pre-release of the python extension
  2. Have a workspace folder with a python file and a virtual environment named .venv

Verification

Use-Existing

  1. Open the python file, ensure that the selected python is the one from pre-existing .venv.
  2. Run Python: Create environment command from command palette
  3. You show see two options after selecting venv. Re-Create and Use Existing.
  4. Select Use existing
  5. You should see a notification saying the python in .venv was selected.

Re-create

  1. Open the python file, ensure that the selected python is the one from pre-existing .venv.
  2. Run Python: Create environment command from command palette
  3. You show see two options after selecting venv. Re-Create and Use Existing.
  4. Select Re-create
  5. Continue following the Quicks prompts
  6. Should delete and create an environment with the same name (.venv)

You should be able to see that the environment was deleted in the logs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions