Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-root workspace settings for python.pythonPath not work #703

Closed
lihuanshuai opened this issue Feb 4, 2018 · 1 comment
Closed

multi-root workspace settings for python.pythonPath not work #703

lihuanshuai opened this issue Feb 4, 2018 · 1 comment
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@lihuanshuai
Copy link

Environment data

VS Code version: vscode 1.19.3
Python Extension version: 2018.1.0
Python Version: 2.7.13
OS and version: macOS 10.13.3

Actual behavior

I am using multi-root workspace when doing some work on several Python projects. Each project has virtual env for due to different dependencies. So I set "python.pythonPath": "${workspaceFolder}/venv/bin/python" in workspace setting. but, no matter which file is opened, Python interpreter is always venv/bin/python under first folder of workspace.

Expected behavior

Python interpreter shall be venv/bin/python under current folder of workspace.

Steps to reproduce:

  • Create folders with python files and venv
  • Add them to workspace, save workspace to .code-workspace file, close workspace and reopen

Logs

@DonJayamanne
Copy link

Duplicate of #690

@DonJayamanne DonJayamanne marked this as a duplicate of #690 Feb 4, 2018
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug closed-duplicate labels Feb 4, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants