forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
info-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
When I have an environment that uses both pyenv and poetry, the extension regularly unsets the active venv, even though I set it manually
Steps to reproduce:
- Create a project with a valid pyproject.toml
- Use pyenv to set force the version of Python (in my case, 3.12.10)
- Use poetry to setup the final virtual environment
- Set the environment in the bottom pannel
- Restart the computer, reboot Vscode, or sometimes just wait and watch (this occurs randomly)
Diagnostic data
Due to the random nature of the bug, unable to get logs of when it happens
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Extension version: 2026.2.0
VS Code version: Code 1.111.0 (ce099c1ed25d9eb3076c11e4a280f3eb52b4fbeb, 2026-03-06T23:06:10Z)
OS version: Windows_NT x64 10.0.26100
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.10
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Poetry
- Value of the
python.languageServersetting: Pylance
User Settings
languageServer: "Pylance"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| autodocstringpy | sun | 0.6.4 |
| azure-dev | ms- | 0.10.0 |
| azure-repos | ms- | 0.40.0 |
| boto3-ide | Bot | 0.6.0 |
| continue | Con | 1.2.16 |
| cpp-devtools | ms- | 0.3.6 |
| cpptools | ms- | 1.30.5 |
| cpptools-extension-pack | ms- | 1.5.1 |
| cpptools-themes | ms- | 2.0.0 |
| debugpy | ms- | 2025.18.0 |
| docker | doc | 0.18.0 |
| even-better-toml | tam | 0.21.2 |
| file-tree-to-text-generator | d-k | 1.4.0 |
| flake8 | ms- | 2025.2.0 |
| gettext | get | 1.0.4 |
| git-graph | mhu | 1.30.0 |
| gitblame | wad | 12.0.3 |
| gitlab-workflow | Git | 6.71.4 |
| go | gol | 0.52.2 |
| html-preview-vscode | geo | 0.2.5 |
| indent-rainbow | ode | 8.3.1 |
| JavaScriptSnippets | xab | 1.8.0 |
| jinja | who | 0.0.8 |
| jinja-snippets | nox | 1.0.0 |
| jinjahtml | sam | 0.20.0 |
| js-debug | ms- | 1.110.0 |
| js-debug-companion | ms- | 1.1.3 |
| json | Mee | 0.1.2 |
| jupyter | ms- | 2025.9.1 |
| jupyter-keymap | ms- | 1.1.2 |
| jupyter-renderers | ms- | 1.3.0 |
| makefile-tools | ms- | 0.12.17 |
| markdown-checkbox | bie | 0.4.0 |
| markdown-emoji | bie | 0.3.1 |
| markdown-footnotes | bie | 0.1.1 |
| markdown-mermaid | bie | 1.32.0 |
| markdown-table-prettify | dar | 3.7.0 |
| markdown-toc | jof | 1.4.0 |
| markdowntable | Tak | 0.13.0 |
| marp-vscode | mar | 3.3.0 |
| mermaid-markdown-syntax-highlighting | bpr | 1.8.0 |
| mermaid-sequence-number | kke | 1.2.1 |
| myst-tml-syntax | chr | 0.1.3 |
| powershell | ms- | 2025.4.0 |
| prettify-json | moh | 0.0.3 |
| prettyxml | Pra | 6.7.0 |
| pytest-fixtures | nic | 0.3.3 |
| pytest-runner | pam | 0.0.13 |
| python | ms- | 2026.2.0 |
| python-auto-venv | Wol | 1.3.2 |
| python-docstring-highlighter | rod | 0.2.4 |
| pytorch-snippets | SBS | 1.0.2 |
| rainbow-bracket | tal | 1.0.2 |
| rainbow-csv | mec | 3.24.1 |
| remote-containers | ms- | 0.447.0 |
| remote-explorer | ms- | 0.5.0 |
| remote-repositories | ms- | 0.42.0 |
| remote-server | ms- | 1.5.3 |
| remote-ssh | ms- | 0.122.0 |
| remote-ssh-edit | ms- | 0.87.0 |
| remote-wsl | ms- | 0.104.3 |
| remotehub | Git | 0.64.0 |
| restructuredtext | lex | 190.4.11 |
| svg | joc | 1.5.4 |
| terraform | has | 2.39.0 |
| test-adapter-converter | ms- | 0.2.1 |
| vscode-azureappservice | ms- | 0.26.4 |
| vscode-azurecontainerapps | ms- | 0.11.0 |
| vscode-azurefunctions | ms- | 1.20.3 |
| vscode-azureresourcegroups | ms- | 0.12.2 |
| vscode-azurestaticwebapps | ms- | 0.13.2 |
| vscode-azurestorage | ms- | 0.17.1 |
| vscode-azurevirtualmachines | ms- | 0.6.10 |
| vscode-containers | ms- | 2.4.1 |
| vscode-cosmosdb | ms- | 0.32.0 |
| vscode-cython | ktn | 1.0.3 |
| vscode-docker | ms- | 2.0.0 |
| vscode-js-profile-table | ms- | 1.0.10 |
| vscode-jupyter-cell-tags | ms- | 0.1.9 |
| vscode-jupyter-slideshow | ms- | 0.1.6 |
| vscode-markdown-extrajs | mor | 0.0.20 |
| vscode-markdown-table | pha | 1.7.0 |
| vscode-markdownlint | Dav | 0.61.1 |
| vscode-node-azure-pack | ms- | 1.8.0 |
| vscode-pylance | ms- | 2026.1.1 |
| vscode-pytest | Cam | 0.1.1 |
| vscode-python-envs | ms- | 1.20.1 |
| vscode-python-test-adapter | lit | 0.8.2 |
| vscode-python-typehint | njq | 1.5.1 |
| vscode-remote-extensionpack | ms- | 0.26.0 |
| vscode-speech | ms- | 0.16.0 |
| vscode-sqlite3-editor | yy0 | 1.0.212 |
| vscode-systemd-support | han | 3.0.0 |
| vscode-test-explorer | hbe | 2.22.1 |
| vscode-xml | red | 0.29.0 |
| vscode-yaml | red | 1.21.0 |
| vsliveshare | ms- | 1.0.5959 |
| xml | Dot | 2.5.1 |
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
82j33506:31327384
63221493:31336333
envsdeactivate2:31464701
cloudbuttont:31379625
aihoversummaries_t:31469308
3efgi100_wstrepl:31403338
use-responses-api:31390855
ec5jj548:31422691
cp_cls_t_966_ss:31454198
eh16j124_selection_ratio_06:31458810
4je02754:31466945
find_all_ref_in_bg_t:31469306
a5gib710:31434435
7a04d226_do_not_restore_last_panel_session:31438103
cp_cls_c_1081:31454833
a43f0574:31442827
e9c30283:31461165
test_treatment2:31471001
idci7584:31464702
edit_mode_hidden:31461530
864ei723_large_tool_results_to_disk:31460878
showingstats:31471631
55364912:31471672
chat:31457767
2ab5e849:31472040
4dgh1208:31471592
noaffordance1:31474146
c3257622:31473910
commenticon:31473926
hb10i343:31473549
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
info-neededIssue requires more information from posterIssue requires more information from postertriage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team