Skip to content

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

Closed

Description

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.

Activity

  1. 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[/+] on Mar 8, 2022
  2. karthiknadig commented on Mar 8, 2022

    @karthiknadig
    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.

  3. karrtikr commented on Mar 11, 2022

    @karrtikr

    First reported in #18200 (comment).

    Leander Kurscheidt (@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.

  4. 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[/+] on Apr 4, 2022
  5. Tma2333 commented on Apr 15, 2022

    @Tma2333

    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.

  6. brettcannon commented on May 12, 2022

    @brettcannon
    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.

  7. karrtikr commented on May 18, 2022

    @karrtikr

    Tma2333 Leander Kurscheidt (@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.

  8. sbrl commented on May 25, 2022

    @sbrl

    Kartik Raj (@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.

  9. karrtikr commented on May 25, 2022

    @karrtikr

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

  10. karrtikr commented on Jun 3, 2022

    @karrtikr

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

  11. locked as resolved and limited conversation to collaborators on Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-environmentsFeatures relating to handling interpreter environmentscommunity askFeature request that the community expressed interest infeature-requestRequest for new features or functionalityinfo-neededIssue requires more information from posterneeds proposalNeed to make some design decisions

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions