Skip to content

The Python extension does not suggest virtual environments from pyenv #15457

Closed
@MattisTrygstad

Description

@MattisTrygstad

Environment data

  • VS Code version: 1.53.2
  • Extension version (available under the Extensions sidebar): v2021.2.576481509
  • OS and version: MacOS 10.14.5
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): pyenv virtualenv
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Value of the python.languageServer setting: Pylance

Expected behaviour

All environments created using pyenv virtualenv are listed as options when selecting interpreter.

Actual behaviour

Only system installations and the pyenv installations of Python 3.8.6 is suggested, not any of the virtual environments created. I have tried reinstalling VS Code, the Python extension, as well as pyenv and virtualenv (using homebrew). The .pyenv folder is located at /Users/username/.pyenv. This has never been an issue for me before today.

Steps to reproduce:

  1. Install VS Code 1.53.2
  2. Install Python and Pylance extensions
  3. Install pyenv and virtualenv using homebrew
  4. Install Python 3.8.6 with pyenv
  5. Create a new enironment using pyenv virtualenv
  6. Restart VS Code
  7. The created environment is not suggested when selecting an interpreter

Logs

N/A

Please let me know if you need any further information regarding this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions