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

don't default to recently used when selecting interpreter #9826

Closed
zachvalenta opened this issue Jan 29, 2020 · 6 comments
Closed

don't default to recently used when selecting interpreter #9826

zachvalenta opened this issue Jan 29, 2020 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@zachvalenta
Copy link

Environment data

  • VS Code version: 1.41.1
  • Extension version (available under the Extensions sidebar): 2020.1.58038
  • OS and version: macOS 10.14
  • Python version (& distribution if applicable, e.g. Anaconda): 3.7

Expected behaviour

Be able to chose from any environment present at venvPath

Actual behaviour

Can only get recently used interpreters

recent

No option to choose from all interpreters

all

This becomes a problem if you've just created an environment. I sometimes just have to close VS Code a few times or wait until whatever mechanism VS Code uses to track what directories exist at venvPath updates.

I'm using Poetry for environments but I don't think this issue overlaps w/ #8372 insofar as, once VS Code stops showing 'select interpreter' with the 'recently used' flag, I can then see all my Poetry envs.

@zachvalenta zachvalenta added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jan 29, 2020
@karthiknadig
Copy link
Member

The recently used there does not refer to recently used interpreters. The recently used there is just referring to the command that was used.
image

The interpreter selector should show all interpreters it detects. If it is not detecting some interpreters then that is likely a bug in our detection. @zachvalenta Can you provide details on which paths are not searched or which interpreters are missing?

/cc @luabud We might have to bring this up stream. The recently used text there is not adding to the experience and it is confusing.

@DonJayamanne
Copy link

not detecting some interpreters then that is likely a bug in our

This list gets refreshed only when reloading VSCode or virtual environment of created in workspace folder. That's by design.

sometimes just have to close VS Code a few times or wait until whatever mechanism VS Code uses to track what

Reloading once is sufficient, however it can take a while to find all the environments. As we do not know which place a a new env had been created, could have been cons or pipenv, or other. Also we are currently unable to monitor fs changes outside the users workspace.

Creating pipenv, pyenv or new conda end will not be available until vsc is reloaded once.
We have a separate issue for this (to refresh the list, I believe @ericsnowcurrently is the author of that issue).
@karthiknadig @luabud /cc

@zachvalenta
Copy link
Author

The recently used there does not refer to recently used interpreters. The recently used there is just referring to the command that was used.

aha! never noticed, makes sense

@zachvalenta
Copy link
Author

As we do not know which place a a new env had been created, could have been cons or pipenv, or other.

Doesn't VSC know which place a new env has been created (in part) through venvPath?

@luabud
Copy link
Member

luabud commented Jan 31, 2020

I believe the issue Don mentioned on the comment above is #2640. Another one also related is #4862 (and perhaps #7132 as well?).

@karthiknadig
Copy link
Member

Closing this, since we don't control the recently used, see this issue on VSCode for more details #89816.

@ghost ghost removed the triage label Jun 7, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants