Skip to content

${workspaceFolder} variable not working #258

Closed

Description

Environment data

VS Code version: 1.18.1
Python Extension version: 0.8.0 (9 November 2017)
Python Version: 3.6.1
OS and version: Windows 10 Home, Version 1703, OS-version 15063.483

Actual behavior

In the settings, when changing "python.pythonPath": "${workspaceRoot}/venv/Scripts/python.exe", to "python.pythonPath": "${workspaceFolder}/venv/Scripts/python.exe", the venv will stop working.

The status bar says "Select Python Environment", indicating it could not find the virtual environment.

image

Expected behavior

It is expected that the virtual environment is found. The status bar should say something similar to:

image

Steps to reproduce:

  • Create a virtual environment inside a workspace
  • Set the python.pythonPath to use ${workspaceFolder}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions