-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Improve "No Python interpreter" selected prompt #17667
Comments
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. |
But does that mean that I would have picked an interpreter at that path? Because there is no interpreter there, so I don't know how that path was selected. And yes this was User settings, not Workspace. |
I would think so, maybe the path got removed with the latest python update. One other case I can think of where we write to the setting: |
I wonder whether it would have come from codespaces or a devcontainer? I was trying those at some point. I think it should be a machine-scoped setting to avoid being synced. |
Oh yes, that could happen, will double check. |
The scope is set to
API. Should it still write to User settings even in remote scenarios? |
I think |
FYI I have fixed the scope of setting with #17732 |
|
Also, remove |
Environment data
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
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.The text was updated successfully, but these errors were encountered: