You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted. #13679
Any progress Austin Park (@austinpark77) ? I've been having the same problem for about 2 weeks and completely deleting the remote .vscode folder then reconnecting and reinstalling the python extension hasn't fixed it at all.
I was OOO for the last week, so I didn't try anything. Today I updated to the most recent version of VS Code (v1.57) and Python Extension (v2021.6.944021595), ssh'd in, and it was working as expected. This probably isn't too helpful, but fingers crossed the update fixes your issues too.
None of the solutions are working. Tried uninstalling the extensions and deleting appropriate folder from .vscode. But the language server keeps crashing.
Is there any other solution out there other than waiting for next update and hope that fixes the issue.
Reacted by adriangzz, Vega, drelyea-blackberry, Prakhar9206, NoblySP, andubadea, Yugesh kc and Shynggys
File -> Preferences -> Settings -> Extensions -> Python -> "Python: Language Server".
or search for it in settings "Python: Language Server" .
change it to Pylance
Reacted by Akhil Ravipati, Akihisa Wakita, Rustan Corpuz, drelyea-blackberry, Botime, stsfk, NoblySP, HumzahJavid, Kayvan Shah, alstel and 14 more
Reacted by Eugen Köpplin
Reacted by ada2718, Abdulaziz Alqasem, Eugen Köpplin, Jahedul Anowar and Rafael Ladeira
Reacted by ali, ada2718, Shreedutt C. Hegde, Eugen Köpplin and Jahedul Anowar
Reacted by stsfk, HumzahJavid, Kayvan Shah, ali, ada2718, Abdulaziz Alqasem, Eugen Köpplin and Rafael Ladeira
File -> Preferences -> Settings -> Extensions -> Python -> "Python: Language Server".
or search for it in settings "Python: Language Server" .
change it to Pylance
I was working on a remote machine using Remote - SSH.
Setting the language server to pylance fixed it for me.
That doesn't work for me. When I check the language server output, I got a stack overflow error when I try to use numpy functions. If a source code file contains import numpy as np, the language server fails.
Activity
mrbell321 commentedon Aug 31, 2020
I am also getting this error.
karthiknadig commentedon Aug 31, 2020
Looks like you might have a bad update. Do the following to remove stale versions of the extension:
%USERPROFILE%/.vscode/extensions(on windows) or~/.vscode/extensionson Linux/Mac.ms-python.python*Kri-Ol commentedon Aug 31, 2020
Reinstallation of all extensions fixed it
mrbell321 commentedon Sep 1, 2020
Same here. Thanks.
edit: I realized that wasn't quite explicit. Reinstallation of extensions fixed it for me.
karthiknadig commentedon Sep 1, 2020
Thank you, for letting us know.
yurenchen000 commentedon May 26, 2021
Encountered similar problem,
re-install
PythonandPylanceextension fixed.austinpark77 commentedon Jun 8, 2021
Uninstall and reinstall (following the steps above) didn't work for me.
ms-python.python v2021.5.842923320is still crashing and printing the error above. I'm working with theRemote - SSHpackage.chaitanya-khandare commentedon Jun 10, 2021
hey man, A BIG THANK YOU THANK YOU THANK YOU. It Really WORKS !!!!!!!!!!!!!!!!!!!!!!!!!
nsbruce commentedon Jun 15, 2021
Any progress Austin Park (@austinpark77) ? I've been having the same problem for about 2 weeks and completely deleting the remote .vscode folder then reconnecting and reinstalling the python extension hasn't fixed it at all.
austinpark77 commentedon Jun 21, 2021
I was OOO for the last week, so I didn't try anything. Today I updated to the most recent version of VS Code (v1.57) and Python Extension (v2021.6.944021595), ssh'd in, and it was working as expected. This probably isn't too helpful, but fingers crossed the update fixes your issues too.
nsbruce commentedon Jun 21, 2021
It seems to be working now for me as well.
KayvanShah1 commentedon Jun 22, 2021
None of the solutions are working. Tried uninstalling the extensions and deleting appropriate folder from .vscode. But the language server keeps crashing.
Is there any other solution out there other than waiting for next update and hope that fixes the issue.
karthiknadig commentedon Jun 22, 2021
Kayvan Shah (@KayvanShah1) File a separate bug with details specific to our scenario. That will help us direct you better.
adriangzz commentedon Jun 23, 2021
Downgrading to version 2021.5.842923320 fixed the issue for me.
Moh-Snoussi commentedon Jun 24, 2021
File -> Preferences -> Settings -> Extensions -> Python -> "Python: Language Server".
or search for it in settings "Python: Language Server" .
change it to Pylance
akhilravipati97 commentedon Jun 29, 2021
I was working on a remote machine using
Remote - SSH.Setting the language server to
pylancefixed it for me.drelyea-blackberry commentedon Jul 2, 2021
Changing the language server to Pylance fixed things, but dear god do I hate the color scheme. Why do we need to have this as Pylance?
luisccomp commentedon Jul 12, 2021
That doesn't work for me. When I check the language server output, I got a stack overflow error when I try to use numpy functions. If a source code file contains
import numpy as np, the language server fails.luisccomp commentedon Jul 12, 2021
This is the output of language sercer currently installed on my PC.
KayvanShah1 commentedon Jul 12, 2021
Changing the language server solves the issues permanently
martingale commentedon Jul 20, 2021
Adding the line
"python.languageServer": "Pylance"to the file.vscode/settings.jsonsolved the issue for me.