Skip to content

Improve "No Python interpreter" selected prompt #17667

Closed

Description

@roblourens

Environment data

  • VS Code version: 1.62-insider
  • Extension version (available under the Extensions sidebar): v2021.10.1317843341

I think this just showed up today, but I can't give exact repro steps. I was doing python things in different repos for awhile. At some point, I noticed that I get this notification every time I open a window with a python project

image

I don't usually see that. Then I noticed that I have this setting, which I definitely didn't set manually: "python.defaultInterpreterPath": "/opt/python/latest/bin/python". Removing that makes the notification go away. Is there something in the extension that adds that setting? That path does not exist for me.

Activity

  1. added
    bugIssue identified by VS Code Team member as probable bug
    triage-neededNeeds assignment to the proper sub-team
    on Oct 8, 2021
  2. karrtikr commented on Oct 11, 2021

    @karrtikr

    Then I noticed that I have this setting, which I definitely didn't set manually:

    We set it in User settings when an interpreter is chosen manually, but we never modify this setting for the workspace as far as I'm aware of.

    Instead of "No Python Interpreter is selected" prompt, we should show a "Invalid Python Interpreter selected" prompt, we'll fix that with this issue.

  3. added
    feature-requestRequest for new features or functionality
    and removed
    bugIssue identified by VS Code Team member as probable bug
    investigatingWe are looking into the cause of the issue
    on Oct 11, 2021
  4. removed their assignment
    on Oct 11, 2021
  5. changed the title [-]defaultInterpreterPath and interpreter notification[/-] [+]Modify "No Python interpreter" selected prompt to "Invalid python interpreter" when invalid interpreter is selected[/+] on Oct 11, 2021
  6. 9 remaining items

  7. removed their assignment
    on Oct 13, 2021
  8. changed the title [-]Modify "No Python interpreter" selected prompt to "Invalid python interpreter" when invalid interpreter is selected[/-] [+]Improve "No Python interpreter" selected prompt[/+] on Jan 7, 2022
  9. karrtikr commented on Jan 7, 2022

    @karrtikr
  10. karrtikr commented on Jul 2, 2022

    @karrtikr

    Also, remove Python is not installed prompt in favor of No Interpreter Selected prompt. This will ensure when users finish installing Python from windows store, it shows up without reload when following the prompt to open the interpreter list. (For #19099)

  11. karrtikr commented on Jul 13, 2022

    @karrtikr
    • If an invalid interpreter is selected:
      image
    • If no Python is installed:
      image
      selecting which leads to:
      image
  12. locked as resolved and limited conversation to collaborators on Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-editor-*User-facing catch-allfeature-requestRequest for new features or functionalityon-testplanAdded to test plan

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions