-
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
Stuck at "Discovering Python interpreter" #23303
Comments
Hi @LazarusX Thanks for filing the issue. ![]() |
@anthonykim1 I tried, but it's not working. |
![]() @LazarusX Can you try downgrading/installing previous version(s) of the Python extension and see if you can still repro the problem? |
@anthonykim1 I remember the endless "Discovering Python Interpreter" issue happened for me since a update around early April. However, at that time, IntelliSense features such as Go-to-Definition and autocompletion still worked. I did a "Clear Cache and Reload Window" last night to see if it helps. After the reloading, the "Discovering Python Interpreter" still existed and IntelliSense also broke. I just did a series of downgrading (as well as "Clear Cache and Reload Window"), all the way back to v2023.22.1. Both issues still exist. Here are the output:
|
OK. I think I found the solution myself. After removing the environment |
@LazarusX Nice. Was |
@anthonykim1 Yes. It's migrated from my last machine, and only used a few years ago. I have no idea why it's scanned as a potential environment. However, IMO, there could be enhancement for this situation, because a broken environment should not block the entire interpreter discovery process. I also believe there is sort of regression here, because the extension used to work fine in spite of the broken environment. |
Type: Bug
Behaviour
Endless "Discovering Python interpreter". The extension's features such as Go-to-definition does not work. I have both VS Code stable with release version of the extension, as well as VS Code Insiders with pre-release version. Both environment can reproduce the issue.
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.4.1
VS Code version: Code - Insiders 1.89.0-insider (Universal) (b55887a7d96669ea2e70baff32bb2288c640d015, 2024-04-26T13:06:22.512Z)
OS version: Darwin arm64 23.4.0
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: