Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The Python Tools server crashed 5 times in the last 3 minutes. The server will not be restarted

The Python Server Crashes Unexpectedly. Am able to run in debug mode but the Linting is not working. Could anybody help me out please?

like image 232
Derry_Jay_10 Avatar asked Dec 09 '25 07:12

Derry_Jay_10


2 Answers

I was able to resolve this by following these steps to reinstall the Python extension: https://github.com/microsoft/vscode-python/issues/13679#issuecomment-683899458

Copying here:

  1. Uninstall Python extension (if you have pylance uninstall it first).
  2. Close all instances of VS Code.
  3. Go to %USERPROFILE%/.vscode/extensions (on windows) or ~/.vscode/extensions on Linux/Mac.
  4. Delete any folder with the name starting with ms-python.python*
  5. Start VS Code, and install Python extension (also pylance if you uninstalled it in step 1).
like image 92
Nolan Meyer Avatar answered Dec 10 '25 21:12

Nolan Meyer


Change the language server to Pylance

Go to VSCode Preferences -> Settings -> Extensions -> Python -> Change the "Language Server" setting to "Pylance" (install Pylance extension if needed)

like image 25
Tanmay Agrawal Avatar answered Dec 10 '25 21:12

Tanmay Agrawal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!