-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Command select python interpreter doesn't list all of the installed python interpreters on system, including those on virtual environment #56
Comments
I can confirm this issue. Reason for this problem seems to be that the plug-in is looking for a python interpreter with the exact name "python", i.e. python3 is not found. If I create a symbolic link to "python3" with the name "python" (let's say ~/bin/python where ~/bin is in my $PATH) the interpreter can be selected again. |
@tangorboyz Currently the extension lists Python interpreters located in the current PATH. As for virtual environments, currently we only search for Virtual environments in the following locations:
@theHamsta, This is not true, the extension looks for Finally, you can augment the search path by editing the following setting in your "python.venvPath": "Path to the virtual env" |
All my pythons are in my PATH. I could invoke each of them from terminal. E.g: for python 2.7.12, i call it with
|
@tangorboyz thats interesting. It
|
no luck. |
Please could you try this in the standard version of VS Code (instead of the insiders build). |
Can confirm the issue @tangorboyz has, same on my end. Version 1.18.0 Maybe related, this pops up roughly 1-2 seconds after selecting the command and showing the selection dialog: |
I have tried it on standard version (1.18.0), the result same as insider. |
@tangorboyz looks like I'm missing something fairly obvious here as this issue has been reported by two others now. |
@tangorboyz please could you confirm there are no errors logged in the |
@tangorboyz never mind, i've identified the bug. Thanks for the info |
I don't know if this could help, but:
That's from insider.
|
Environment data
VS Code version: 1.19.0-insider
Python Extension version: 0.8.0
Python Version: 2.7.12, 3.5.2, 3.6.3
OS and version: Ubuntu 16.04
Actual behavior
As I mention above, I have three python version installed on my computer, but the only python that shows up when running command python: select interpreter is python 2.7.12. See picture bellow.
Extension also will only list python 2.7.12 + the one that I already set on workspace configuration file (manually).
Expected behavior
It should list all three python version, including those that running on virtual environment
The text was updated successfully, but these errors were encountered: