Skip to content

Create environment with pre-existing .venv #21878

Closed

Description

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.

Activity

  1. removed their assignment
    on Aug 29, 2023
  2. hbons commented on Aug 29, 2023

    @hbons

    I can verifiy both flows work. I used python3 -m venv .venv to create the environment in side the python-test folder.

    image
  3. locked as resolved and limited conversation to collaborators on Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions