Repro steps:
- Setup
pyenv virtualenv as your local .python-version for your project
- VS Code automatically installs Python Environments extension automatically as part of Python/Python Debugger auto update
Expected: VS Code continues to select the correct pyenv virtualenv per .python-version as before
Actual: VS Code fails to load the pyenv virtualenv
- Use Command Palette to go to
Python: Select interpreter
Expected: My pyenv virtualenv is listed
Actual: pyenv virtualenv are missing from the environments list
Workaround:
4. Uninstall Python Environments extension and restart extension
Everything works as expected:
- VS Code correctly selects
pyenv virtualenv per .python-version as before
Python: Select interpreter correctly lists my pyenv virtualenv
Note:
- This was quite frustrating to have this was automatically installed without notice. Especially since this is marked as Preview software so not ready for rollout. This took longer to debug/uninstall because I didn't know something was installed without my notice and I wasted time trying to rollback the wrong extensions.
Repro steps:
pyenv virtualenvas your local.python-versionfor your projectExpected: VS Code continues to select the correct
pyenv virtualenvper.python-versionas beforeActual: VS Code fails to load the
pyenv virtualenvPython: Select interpreterExpected: My
pyenv virtualenvis listedActual:
pyenv virtualenvare missing from the environments listWorkaround:
4. Uninstall Python Environments extension and restart extension
Everything works as expected:
pyenv virtualenvper.python-versionas beforePython: Select interpretercorrectly lists mypyenv virtualenvNote: