Poetry Environment neither automatically detected nor shown in "Select Interpreter" list
See original GitHub issueAs far as I can tell, Poetry support was added in the version of the Python extension that I have, however I’m unable to get it to detect is automatically by VSCode, and it doesn’t appear as an interpreter to select with the appropriate command. I know that I can specify the path for it to get the environment manually, but I feel like that defeats the purpose - I’d really like to get it properly set up in an automated fashion 🙂
Output of poetry env info:
Virtualenv
Python: 3.8.9
Implementation: CPython
Path: /Users/juliant/Library/Caches/pypoetry/virtualenvs/mince-4ZV0U0mz-py3.8
Valid: True
System
Platform: darwin
OS: posix
Python: /Users/juliant/.pyenv/versions/3.8.9
List of interpreters to choose from:

Environment data
- VS Code version: 1.56.1
- Extension version (available under the Extensions sidebar): v2021.5.829140558
- OS and version: macOS 11.2.3
- Python version (& distribution if applicable, e.g. Anaconda): 3.8.9 (pyenv)
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): Poetry
- Relevant/affected Python packages and their versions: Poetry 1.1.6
- Relevant/affected Python-related VS Code extensions and their verions: N/A? (version given above)
- Value of the
python.languageServersetting: Pylance
Expected behaviour
the Python extension automatically finds my Poetry environments and (at the very least) suggests it as an interpreter option
Actual behaviour
The interpreter isn’t shown in t he dropdown when I use the “Select Interpreter” command.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]
- Create a project using Poetry
- Install dependencies
- Try to select the environment that Poetry generates
- Be sad when it’s not in the list of interpreters to choose from
Issue Analytics
- State:
- Created 2 years ago
- Comments:20

Top Related StackOverflow Question
@macintacos It seems it’s because you’re not opted into discovery experiment which has the Poetry related functionality. Can you add the following to your User settings and see if it helps,
If it doesn’t please provide a fresh set of logs and provide the output for
poetry env listcommand which we use to discover envs.Thanks for the bug report! We just wanted to quickly acknowledge we received it and we will triage this as soon as we can.