Select interpreter popup does not shown any system, pyenv or virtualenv choice.
See original GitHub issueEnvironment data
- VS Code version: 1.53.2
- Extension version (available under the Extensions sidebar): v2021.2.576481509
- OS and version: OSX Catalina 10.15.7
- Python version (& distribution if applicable, e.g. Anaconda): 3.8.7
- Type of virtual environment used (N/A | venv | virtualenv | conda | …): virtualenv
- Relevant/affected Python packages and their versions: XXX
- Relevant/affected Python-related VS Code extensions and their versions: XXX
- Value of the
python.languageServer
setting: Microsoft
[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'
), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]
Expected behaviour
When click on select interpreter, the popup should shown all installed python interpreter including system, brew, pyenv and also virtualenv created under pyenv.
Actual behaviour
The select interpreter popup only shown the one interpreter under “/usr/bin/python3”, no other interpreters shown like it use to be. However if manually select the desired interpreter/virtualenv through the system dialog box, everything else in python development seems to work just fine.
The extension output the following in the output window complaining of not able to resolve symbolic link, even though all those symbolic link are valid and create by default installation methods include system, brew or pyenv.
Error 2021-02-17 22:56:52: Failed to resolve symbolic link: [Error: ENOENT: no such file or directory, lstat ‘…/…/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7’] { errno: -2, code: ‘ENOENT’, syscall: ‘lstat’, path: ‘…/…/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7’ }
Error 2021-02-17 22:56:52: Failed to resolve symbolic link: [Error: ENOENT: no such file or directory, lstat ‘…/Cellar/python@3.9/3.9.1_8/bin/python3’] { errno: -2, code: ‘ENOENT’, syscall: ‘lstat’, path: ‘…/Cellar/python@3.9/3.9.1_8/bin/python3’ } Error 2021-02-17 22:56:52: Failed to resolve symbolic link: [Error: ENOENT: no such file or directory, lstat ‘…/Cellar/python@3.9/3.9.1_8/bin/python3.9’] { errno: -2, code: ‘ENOENT’, syscall: ‘lstat’, path: ‘…/Cellar/python@3.9/3.9.1_8/bin/python3.9’ }
BTW, I tested the same setup on linux or windows, it works fine.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:31 (8 by maintainers)
Top GitHub Comments
For my case, What it was worked:
@LeoAzLiu
pyenv-win
is detected in the new experimental version of the discovery code. You can get that by opting into it, ad this to your user settings: