-
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
Test pyenv environments are autoselected #23114
Comments
This TPI didn't seem to work for me on macOS with zsh. |
This worked for me on Fedora, but I wonder if there should be an easier way for users to refresh their pyenv without having to clear cache and reload window. Maybe you can detect if a pyenv command was run in the terminal with shell integration as a starting point? |
@connor4312 Pyenv environments are currently considered global environments, so we only automatically trigger discovery once for them. Maybe if we had a global watcher, or watch for all commands being run as you said, that could solve the issue. But we've noticed previously that it leads to a performance overhead and overall loss in experience. Created #23139 which should make things better for now: we can look if we have a This issue should also be addressed with #22836 once Pyenv extension which manages its own environments. |
@karrtikr @connor4312 does this issue have anything to do with launch.json not respecting my pipenv virtualenv? this used to work, but now i am getting errors that a module is not found if i run python through the debug console.. it is installed in my pipenv, but for some reason it is looking in my global pyenv for the module?? |
resolved, sorry |
Refs: #1167
Complexity: 4
Create Issue
Requirements
Verification
pyenv --version
to check if the installation was successful.pyenv install -l
to check a list of Python versions supported by pyenvpyenv install <version>
to install a couple of supported versionspyenv global <version>
to set a Python version as the global version, for eg.pyenv global 3.9.0
pyenv which python
and record the full path to python somewherePython: Clear cache and reload window
commandpyenv local <version>
command to select another version of PythonPython: Clear cache and reload window
command, make sure the latest version set is now selectedThe text was updated successfully, but these errors were encountered: