Skip to content

poetry env list does not list in-project environment even though it is currently activated #3939

@karrtikr

Description

@karrtikr

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 (-vvv option).

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

No one assigned

    Labels

    area/cliRelated to the command linearea/venvRelated to virtualenv managementkind/bugSomething isn't working as expectedstatus/confirmedIssue is reproduced and confirmedstatus/triageThis issue needs to be triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions