Skip to content

Detect virutal envs recursively in all sub-directories in the workspace #12164

@PooyaJln

Description

@PooyaJln

This issue is similar to #2470 but the solution doesn't apply to me.
I tried changing the "python.venvPath": "${workspaceFolder}/venv" in setting.json but it didn't help.
As it can be seen in the screenshot, I can use the virtual environment using terminal.

Environment data

  • VS Code version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.80290
  • OS and version: ubuntu 18.04 (Linux x64 4.15.0-101-generic)
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.6.9
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: XXX
  • Relevant/affected Python-related VS Code extensions and their versions: XXX
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): true
  • Value of the python.languageServer setting: "Microsoft"

Expected behaviour

Clicking on the interpretor on the left bottom should show all available interpretors including virtual environments.

Actual behaviour

virtual environment are not detected.

Steps to reproduce:

  1. click on the interpretor selection on the left bottom
    image

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions