-
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
Python interpreter loading stuck #24324
Comments
@ruihangdu Can you try running "Python: Clear Cache and Reload"? You can clear any changes you did to |
Ok I'm now seeing some different errors: Python Output
|
@ruihangdu Can you try the pre-release version of the extension? Can you also check your settings and see if there is anything there that points to a non-existing environment? |
I did check my settings, but didn't see anything standing out. Is there any specific part of the setting I should take a deeper look at? |
Check |
In my VSCode settings, condaPath is empty, I didn't quite find pythonPath, and I updated to defaultInterpreterPath to python3, which points to
I installed the pre-release version and I saw the following log:
But I still don't see any log line that indicates Pylance has been loaded, and intellisense is still not working. |
Tis is strange. What do you see in Output > Python Locator? Also, open Help > Toggle Developer Tools and share any errors you see there. |
Output > Python Locator
|
@ruihangdu What do you have for the @rchiodo Any ideas on what might be going on here? As far as I can tell, from the latest logs there, we are finding and picking up the python. But somehow, pylance is not starting. |
I've been having this problem myself. (#24211) It happens if a python interpreter is selected that isn't available anymore. There's no log entry for starting of Pylance either, so I would assume it's stalling on the extension side. |
my python.languageServer is Pylance |
@ruihangdu Can you force a selection? run the Select Interpreter command and select/re-select the python you want to use. see if that helps. |
tried it. Didn't really help |
I am running into the same problem, which seems to happen only after version 2024.10.0. Version 2024.8.1 doesn't bring about this issue. Tested on
|
Type: Bug
Behaviour
When I load a Python project in vscode, I would see a "Discovering Python Interpreters" spin wheel on the bottom left corner of the window indefinitely, and I cannot use any intellisense features on the python file, including finding references & function definitions. I saw a bunch of errors in the Python extension output log about not being able to find miniconda3 path (I do not have miniconda installed on the machine anymore) but not sure if those are red herrings.
I have tried the suggestions in #23956 to change "Python Locator" from "native" to "js" but that didn't work, so reaching out for help. Thank you!
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.16.1
VS Code version: Code 1.94.2 (Universal) (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Darwin arm64 22.6.0
Modes:
python.languageServer
setting: PylanceUser 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
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: