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

Add an option to turn off auto environment discovery if an interpreter is explicitly selected #18647

Closed
LeanderK opened this issue Mar 7, 2022 · 8 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments community ask Feature request that the community expressed interest in feature-request Request for new features or functionality info-needed Issue requires more information from poster needs proposal Need to make some design decisions

Comments

@LeanderK
Copy link

LeanderK commented Mar 7, 2022

I am using vscode on a remote ssh connection where my work and environment is on a shared network-drive. When I connect "Discovering Python Interpreters" just takes ages (waiting for 15 minutes). Maybe it's important: The shared network-drive is multiple terabytes with different projects of different people and has some latency. Maybe it's searching through too many conda installations?

Can I just disable it? I have already chosen my interpreter.

I don't know which logs to provide, they don't seem relevant? I don't see anything regarding the search of interpreters.

@LeanderK LeanderK added triage-needed Needs assignment to the proper sub-team feature-request Request for new features or functionality labels Mar 7, 2022
@karthiknadig karthiknadig changed the title "Discovering Python Interpreters" takes ages in ssh-mode Add an option to turn off auto environment discovery if an interpreter is already selected Mar 8, 2022
@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments needs community feedback Awaiting community feedback and removed triage-needed Needs assignment to the proper sub-team labels Mar 8, 2022
@karthiknadig
Copy link
Member

Thanks for the feature request! We are going to give the community 60 days from when this issue was created to provide 7 👍 upvotes on the opening comment to gauge general interest in this idea. If there's enough upvotes then we will consider this feature request in our future planning. If there's unfortunately not enough upvotes then we will close this issue.

@karrtikr
Copy link

First reported in #18200 (comment).

@LeanderK Please try the following VSIX https://github.com/microsoft/vscode-python/suites/5609518918/artifacts/182361458 and let me know if it helps: Use Extension: Install from VSIX... command to install the VSIX. Discovery, however long it takes, should not be blocking rest of your work.

@karrtikr karrtikr changed the title Add an option to turn off auto environment discovery if an interpreter is already selected Add an option to turn off auto environment discovery if an interpreter is explicitly selected Apr 4, 2022
@Tma2333
Copy link

Tma2333 commented Apr 15, 2022

Same issues here, discovering interpreter take a very long time when work with NAS based server dev environment. There are multiple feature are gated behind discovering interpreter, such as notebook kernel selection and Linting.

@brettcannon
Copy link
Member

Thank you to everyone who upvoted this issue! Since the community showed interest in this feature request we will leave this issue open as something to consider implementing at some point in the future.

We do encourage people to continue 👍 the first/opening comment as it helps us prioritize our work based on what the community seems to want the most.

@karrtikr
Copy link

karrtikr commented May 18, 2022

@Tma2333 @LeanderK Hi everyone, #19102 now ensures auto discovery is only triggered if a user attempts to choose a different interpreter via UI (given Jupyter is not installed). Try the latest pre-release, activate the extension, auto-discovery should no longer happen:

image

We can probably close this issue.

@karrtikr karrtikr self-assigned this May 18, 2022
@karrtikr karrtikr added the info-needed Issue requires more information from poster label May 18, 2022
@sbrl
Copy link

sbrl commented May 25, 2022

@karrtikr I have not selected a different interpreter via the UI, and I still the infinite Discovering Python Interpreters infinitely sitting there blocking other extensions from executing. This is on Ubuntu Desktop 20.04.

@karrtikr
Copy link

karrtikr commented May 25, 2022

@sbrl Note Jupyter still triggers discovery at startup (see #19102 (comment)), so maybe you have that extension installed/enabled?

@karrtikr
Copy link

karrtikr commented Jun 3, 2022

Closing in favor of #18647 (comment). This problem will be solved for Jupyter with #19101.

@karrtikr karrtikr closed this as completed Jun 3, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 4, 2022
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 community ask Feature request that the community expressed interest in feature-request Request for new features or functionality info-needed Issue requires more information from poster needs proposal Need to make some design decisions
Projects
None yet
Development

No branches or pull requests

6 participants