Skip to content

Unable to select virtual environment not located at root #1019

@jtdavis777

Description

@jtdavis777

Environment data

  • VS Code version: 1.21.0
  • Extension version (available under the Extensions sidebar): 2018.2.1
  • OS and version: Windows 10 64 Bit
  • Python version: 2.7 and 3.6
  • Type of virtual environment used (if applicable): venv
  • Relevant/affected Python packages and their versions: N/A

Actual behavior

Selecting python executable to run in the lower left hand corner only displays options for the default installed python libraries and virtual environments found at workspace root.

image

image

Expected behavior

Extension should either be able to search within the directory tree for virtual environments contained within folders (for example, I have a venv folder located at .\partner-api\venv), or users should be able to type in a full path to a python executable and have this added to the list.

Steps to reproduce:

  1. Add folder to workspace
  2. Add virtual environment root folder to created folder
  3. Reload VSCode (ref issue New workspace virtual environments are not discovered until VS Code reloads #656)
  4. See that new virtual environment has not been added to the list

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

none

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

none

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