Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create environment with pre-existing .venv #21878

Closed
3 tasks done
karthiknadig opened this issue Aug 28, 2023 · 1 comment
Closed
3 tasks done

Create environment with pre-existing .venv #21878

karthiknadig opened this issue Aug 28, 2023 · 1 comment
Labels
testplan-item Test plan item/assignments for upcoming release
Milestone

Comments

@karthiknadig
Copy link
Member

karthiknadig commented Aug 28, 2023

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.

@hbons
Copy link
Member

hbons commented Aug 29, 2023

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

image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item Test plan item/assignments for upcoming release
Projects
None yet
Development

No branches or pull requests

4 participants