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

Getting error Select Interpreter when opening a Multi-root workspace #3419

Closed
DonJayamanne opened this issue Nov 21, 2018 · 5 comments
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority

Comments

@DonJayamanne
Copy link

  • Open a multi-root workspace folder with one workspace folder
  • You'll get an error Select Python Interpreter in statusbar (simulate this somehow, ensure PYTHON is not in path, or update pythonPath in settings.json to point to an invalid python interpreter)
  • Select a python interpreter
  • You'll still get the error
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug needs PR important Issue identified as high-priority labels Nov 21, 2018
@brettcannon
Copy link
Member

  • Auto-selecting environment in multi-root workspace (2)
  • Validate interpreter in multi-root workspace (2)
  • Make sure this issue is resolved (1)

@xcdr
Copy link

xcdr commented Dec 21, 2018

Probably this is not only problem with 'Select interpreter', after manually select interpreter doesn't work PYTHONPATH=./app_sources from my .env file.

This settings work with single root folder, and doesn't with multi root workspace.

@DonJayamanne DonJayamanne self-assigned this Dec 21, 2018
@DonJayamanne
Copy link
Author

@xcdr I don't quite understand the problem you are describing. please could you give some instructions to replicate this issue.

@xcdr
Copy link

xcdr commented Dec 24, 2018

@xcdr I don't quite understand the problem you are describing. please could you give some instructions to replicate this issue.

Hi, I created repo for example: https://github.com/xcdr/vscode-bug-3419

You can clone this repo and open project via projects.code-workspace, in this case You should see underlined mypackage in main.py, but all work's fine when You open project-a or project-b directly because properly works PYTHONPATH via .env file.

PS D:\Projects\vscode-bug-3419> pip list
Package          Version
---------------- ----------
certifi          2018.10.15
pip              18.1
pipenv           2018.11.26
setuptools       39.0.1
virtualenv       16.1.0
virtualenv-clone 0.4.0

I use vscode on Windows 10 1809 with pwsh 6.1. as shell:

PS D:\Projects\vscode-bug-3419> code -v
1.30.1
dea8705087adb1b5e5ae1d9123278e178656186a
x64
PS D:\Projects\vscode-bug-3419> code --list-extensions --show-versions
CoenraadS.bracket-pair-colorizer-2@0.0.25
EditorConfig.EditorConfig@0.12.5
mikestead.dotenv@1.0.1
ms-python.python@2018.12.1
ms-vscode.Go@0.8.0
ms-vscode.PowerShell@1.10.2
PeterJausovec.vscode-docker@0.4.0
VisualStudioExptTeam.vscodeintellicode@1.1.2
vscoss.vscode-ansible@0.5.2

I often use worspaces for sets of mixed projects in many technologies: Python,Go,SQL,Ruby itp.

@ericsnowcurrently
Copy link
Member

How do I "Open a multi-root workspace folder with one workspace folder"?

@ghost ghost removed needs PR labels Jan 10, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Feb 7, 2019
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 important Issue identified as high-priority
Projects
None yet
Development

No branches or pull requests

4 participants