forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.
Description
Type: Bug
Behaviour
Hatch virtual environments are not displayed when using the command palette Python: Select Interpreter (or similarly when using the Jupyter extensions Select Kernel option).
Steps to reproduce:
- Update the VS Code python extension to
2024.18.0or later. - Using
hatch env create, create multiple virtual environments. By default they are placed in the.hatchdirectory of the workspace root. - Open command palette
Python: Select Interpreter(or Jupyter extensionSelect Kernel) and local environments will not be listed. - Revert VS Code python extension to
2024.16.1and restart and the environments are displayed as expected.
Diagnostic data
The issue is reproducible in all versions 2024.18.0 and higher. Possibly related to this commit which fixed an unrelated duplication issue: #24321
Extension version: 2024.18.0
VS Code version: Code 1.96.4 (Universal) (cd4ee3b1c348a13bafd8f9ad8060705f6d4b9cba, 2025-01-16T00:16:19.038Z)
OS version: Darwin arm64 24.3.0
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.1
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Pylance"
testing
• pytestArgs: "<placeholder>"
• pytestEnabled: true
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| autoDocstring - Python Docstring Generator | njpwerner.autodocstring | 0.6.1 |
| C/C++ | ms-vscode.cpptools | 1.23.5 |
| C/C++ Extension Pack | ms-vscode.cpptools-extension-pack | 1.3.0 |
| C/C++ Themes | ms-vscode.cpptools-themes | 2.0.0 |
| CMake | twxs.cmake | 0.0.17 |
| CMake Tools | ms-vscode.cmake-tools | 1.19.52 |
| Code Spell Checker | streetsidesoftware.code-spell-checker | 4.0.34 |
| Dev Containers | ms-vscode-remote.remote-containers | 0.394.0 |
| Docker | ms-azuretools.vscode-docker | 1.29.4 |
| Even Better TOML | tamasfe.even-better-toml | 0.21.2 |
| GitHub Actions | github.vscode-github-actions | 0.27.1 |
| GitHub Pull Requests | GitHub.vscode-pull-request-github | 0.102.0 |
| GitHub Repositories | GitHub.remotehub | 0.64.0 |
| JavaScript Debugger | ms-vscode.js-debug | 1.96.0 |
| JavaScript Debugger Companion Extension | ms-vscode.js-debug-companion | 1.1.3 |
| Jupyter | ms-toolsai.jupyter | 2024.11.0 |
| Jupyter Cell Tags | ms-toolsai.vscode-jupyter-cell-tags | 0.1.9 |
| Jupyter Keymap | ms-toolsai.jupyter-keymap | 1.1.2 |
| Jupyter Notebook Renderers | ms-toolsai.jupyter-renderers | 1.1.0 |
| Jupyter Slide Show | ms-toolsai.vscode-jupyter-slideshow | 0.1.6 |
| Makefile Tools | ms-vscode.makefile-tools | 0.11.13 |
| Mypy Type Checker | ms-python.mypy-type-checker | 2024.0.0 |
| Pylance | ms-python.vscode-pylance | 2025.2.1 |
| Pylint | ms-python.pylint | 2024.0.0 |
| Python | ms-python.python | 2024.18.0 |
| Python Debugger | ms-python.debugpy | 2024.14.0 |
| Remote Repositories | ms-vscode.remote-repositories | 0.42.0 |
| Rewrap | stkb.rewrap | 1.16.3 |
| Ruff | charliermarsh.ruff | 2025.4.0 |
| Table Visualizer for JavaScript Profiles | ms-vscode.vscode-js-profile-table | 1.0.10 |
| VS Code Counter | uctakeoff.vscode-counter | 3.6.2 |
| YAML | redhat.vscode-yaml | 1.15.0 |
Metadata
Metadata
Assignees
Labels
area-environmentsFeatures relating to handling interpreter environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugneeds spikeLabel for issues that need investigation before they can be worked on.Label for issues that need investigation before they can be worked on.

