selecting python interpreter has no effect, lsp server doesn't seem to be up #24839
Labels
bug
Issue identified by VS Code Team member as probable bug
important
Issue identified as high-priority
needs spike
Label for issues that need investigation before they can be worked on.
Milestone
Type: Bug
Behaviour
Pylance intellisense is completely not working (go to reference/definition even for the standard python library).
Running the
Python: Restart Language server
command results incommand 'python.analysis.restartLanguageServer' not found
After selecting an interpreter (./.venv/bin/python), opening a terminal shows
Python virtual environment was successfully activated, even though "(.venv)" indicator may not be present in the terminal prompt. Learn more.
However, if I try to callpython
it would still failzsh: command not found: python
I've tried uninstall and reinstalling the extensions at least 10 times. Including deleting the python-related folders from the
~/.vscode/extensions
folder.Now i'm trying the disable/reenable/unintsall/reinstall loop again, and this time, when i click enable in the Python extension, i get this error about Pylance:
Developer tools sometimes has some error message:
notificationsAlerts.ts:42 Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details. c @ notificationsAlerts.ts:42
Steps to reproduce:
Just install the regular Python + Python debugger + Pylance. Try selecting interpreter. Observe everything fail miserably.
Extension version: 2025.0.0
VS Code version: Code 1.97.2 (Universal) (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z)
OS version: Darwin arm64 22.6.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
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: