Skip to content
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

Issue with Select Interpreter / Create Terminal after creation of new virtualenv #12369

Closed
david-waterworth opened this issue Jun 16, 2020 · 3 comments
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@david-waterworth
Copy link

david-waterworth commented Jun 16, 2020

Steps to cause the bug to occur

  1. Create a new pyenv-virtualenv in the vscode terminal pyenv virtualenv 3.7.6 my-virtual-env- 3.7.6
  2. F1 Python: Select Interpreter and choose the newly created my-virtual-env- 3.7.6
  3. F1 Python: Create Terminal (or start a Jupyter notebook)

Actual behavior

Starts the wrong interpreter

Expected behavior

Start the right interpreter

It seems to be caching the interpret list and not being aware it's been changed from underneath. Restarting vscode fixes the issue

@david-waterworth david-waterworth added data science bug Issue identified by VS Code Team member as probable bug labels Jun 16, 2020
@ghost ghost added the triage-needed Needs assignment to the proper sub-team label Jun 16, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 17, 2020
@ericsnowcurrently
Copy link
Member

@david-waterworth, thanks for letting us know about this. We will work on fixing the issue as soon as we can.

@ericsnowcurrently ericsnowcurrently added area-environments Features relating to handling interpreter environments needs PR and removed triage labels Jun 17, 2020
@ericsnowcurrently ericsnowcurrently removed their assignment Jun 17, 2020
@david-waterworth
Copy link
Author

It also doesn't seem to be 100% deterministic. Today I created a new pyenv-virtualenv from the vscode terminal. It didn't show up at all in the list of interpreters until I restarted vscode. Then it appeared but the first time I tried to enable an error was raised. Then it worked

Command 'Python: Select Interpreter' resulted in an error (command 'python.setInterpreter' not found)

@karrtikr
Copy link

Fixed in latest release of extension.

@karrtikr karrtikr added this to the October 2021 milestone Oct 21, 2021
@karrtikr karrtikr added the verified Verification succeeded label Oct 25, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

5 participants