-
Notifications
You must be signed in to change notification settings - Fork 35
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug
Description
Description
When virtualenvs.path is not set (default), but virtualenvs.in-project is set to true, the created in-project environment is incorrectly detected as a generic Venv instead of Poetry.
To Reproduce
- Configure the project to use in-project virtual environments. Use the CLI or manually edit
poetry.tomlin the project:
[virtualenvs]
in-project = true(Ensure that virtualenvs.path is not set)
2. Run poetry install to create the .venv in the project
3. Check how pet-poetry recognizes the environment (Incorrectly detected as Venv).
4. Update poetry.toml to explicitly include virtualenvs.path:
[virtualenvs]
in-project = true
path = "{cache-dir}/virtualenvs"- Check the
pet-poetryrecognition result again (Correctly detected asPoetry).
Expected Behavior
The environment should be recognized as Poetry. As stated in the Poetry document, virtualenvs.path should only control the storage path for global virtual environments. It should not alter the behavior or detection of local in-project environments. Therefore, I believe this is an issue with pet-poetry's detection logic.
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bug