-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/cliRelated to the command lineRelated to the command linearea/venvRelated to virtualenv managementRelated to virtualenv managementkind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/confirmedIssue is reproduced and confirmedIssue is reproduced and confirmedstatus/triageThis issue needs to be triagedThis issue needs to be triaged
Description
Hi VSCode Python extension dev here 👋
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: Windows_NT x64 10.0.19042
- Poetry version: 1.1.5
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/karrtikr/cfa99d02f962431a491088d86fd30146
Issue
Unless the virtualenvs.in-project is explicitly set to true, poetry env list does not display local .venv named environment. If setting is not set to true, poetry will use the virtualenv from the .venv directory when one is available as stated in the docs. In that case I would also expect poetry env list to contain the active poetry environment, which is the local .venv.
So it seems that our extension cannot rely on poetry env list to discover all poetry environments microsoft/vscode-python#8372 for a project atm.
Metadata
Metadata
Assignees
Labels
area/cliRelated to the command lineRelated to the command linearea/venvRelated to virtualenv managementRelated to virtualenv managementkind/bugSomething isn't working as expectedSomething isn't working as expectedstatus/confirmedIssue is reproduced and confirmedIssue is reproduced and confirmedstatus/triageThis issue needs to be triagedThis issue needs to be triaged