-
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
Virtual environments not listed with Python: Select Interpreter #1192
Comments
Here is the tree structure (limited to three levels):
|
I'm seeing this too. Adding few more details.
|
I can't reproduce with the development build of the extension: Is everyone running the latest version of the extension? (I notice @kbakk is not for instance.) |
I'm on version 2018.3.1. Running on VS Code 1.12.1 on OS X 10.13.3. |
Have upgraded from 2018.2.1 -> 2018.3.1 since this was reported. Still seeing the issue. I notice that you use Windows, @brettcannon. Could this be limited to MacOS (as both me and @hruan uses)? |
I had the same issue. I disabled then reenabled the extension and this resolved the issue.
|
@kbakk it's certainly possible it's mac-only. Could you see if what @cloudyparts did somehow fixes it? Otherwise someone on our team who has a Mac will have a look. |
I've the same issue, on Mac osx 10.11.6 |
@kbakk @gbonline @cloudyparts @hruan |
@kbakk @gbonline @cloudyparts @hruan
Let me know how this goes |
@DonJayamanne Installing the provided extension fixed the issue for me! Thank you! |
Works for me as well. Will we need reinstall extension from Marketplace once, 2018.4 is released? |
No, it's automatic |
In case anyone still has this issue, I tried the VSIX plugin above but the command palette still wasn't showing my pyenv-installed 3.4.3 version. However, running this in the command line Made it appear in the Select Interpreter list. |
This seems to have stopped working in a recent version of either VS Code or the Python extension. I believe it worked about 1 month ago.
Environment data
Actual behavior
Python: Select Interpreter menu only shows 3 interpreters - /usr/bin/python2.7, /usr/local/bin/python3, /User/kristofferb/.venv/flask-rest-test/bin/python
The flask-rest-test entry is loaded (title is "Python 3.6.4 (venv)"), however this resides under another .venv folder I've previously used (not the one specified in
python.venvPath
). Why this works, is not clear to me, it might be because I've specified this manually in another project.Expected behavior
All interpreters under the specified
python.venvPath
is made available, not just system (and one which is recently used)Steps to reproduce:
python -m venv ~/.venv2/test_vscode_venv
mkdir test_vscode_venv; echo "import this" > test_vscode_venv/test.py; code test_vscode_venv
{"python.venvPath": "~/.venv2/"}
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)The text was updated successfully, but these errors were encountered: