Python tools server crashed

Saved searches

Use saved searches to filter your results more quickly

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.

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 tools server crashed 5 times in the last 3 minutes #12537

python tools server crashed 5 times in the last 3 minutes #12537

Comments

Environment data

Version: 1.46.1
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:13:20.174Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 6.1.7601

Looks exist many problem related with from this version and next
#12531

After this I meet many issues that growig, eg:
.. python tools server crashed 5 times in the last 3 minutes
microsoft/python-language-server#1400

Читайте также:  Шаблонизатор html что это

Not working breadcrumbs. For me eg. in JS working but on python not and listing files .py near edited not class, vars
https://user-images.githubusercontent.com/1794099/80456245-8d935c80-892d-11ea-8300-c3292008b036.png

With this version I meet related bug on django
microsoft/ptvsd#1483 (comment)

I don’t knowe where to start to solve problems. Probably the best is back to the previous version of VSC if is related in fact.

Logs

Don’t know how to puts logs for this I not debuging nothing or even trying whole enviorment made problems around python.

The text was updated successfully, but these errors were encountered:

@karthiknadig
After autoupdate crashing notification gone away. Looks new release solved problem.
https://github.com/microsoft/vscode-python/releases/tag/2020.6.90262
HVR need some option to manage extensions to turn bac previous version if works ok, in other way the managmet of this all extensions and development is horror including VSC process.

In these all of counted issues just problem with this:
microsoft/debugpy#315
And still don’t have acess to clasess and vars in breadcrumbs. When debug then yes, VSC sugesting clasess.

@ManPython I am glad the latest fix addressed the crash issue. As for switching to the previous version issue, it is an issue with the marketplace itself (see here for more details microsoft/vscode#99699). I am going to close this issue since the crash itself is now not occurring. For the debugpy issue it should be addressed in that repo.

@karthiknadig I think is bug and found the problem — it’s in breadcumbs settings. There are many settings for this and time ago I do some experiment around and forgot about in other project and copied settings to other. Soo.. VSC calling many times pylint to found whole elements in the doc like clasess, methods, etc. When file is long, many lines, then VSC have problem around and crashing. HVR I turned off many of these functions but not recover the functionality to show in breadcrumbs the basic elements other than files — no class, no methods, no other. Now not sure what is the problem. It’s related with VSC upgrade or other? If was some changes around this, or ptv, then this information can help to understand the situation why this happenig.
Some projects are small, other biger, and this made variable situation for crashing.
What this bug made — I discover that any of changes around settings always calling in Win process many of then like code , pylint , python (more than 20 per type, etc.). Soo.. this natural that crashing exist in this situation, coz node is overloaded I think, or problems with CPU, loops.
In begin of checking whole list of code elements, looks like VSC starting everytime to find them. After problem no exist breadcrumbs, and can’t be sugested in code.

The solution aditional to solve problem can be maybe a option to add «reset settings» in some part of settings/card, like breadcrumbs — to turn back the default settings. Now I not sure what was the first settings to turn back corect working of breadcumbs.

image

@ManPython Can you share a screenshot of what you mean by bread crumbs? Are you referring to this part:

@karthiknadig YES, to this part. When we clicking file we should see the elements from logs.py as class, functions, etc. I see only other files near logs.py
Time ago this works normaly. I using always VSC portable with external folder for extensions.

@ManPython Try pylance this is a new Language server by microsoft that will replace the current one, https://devblogs.microsoft.com/python/announcing-pylance-fast-feature-rich-language-support-for-python-in-visual-studio-code/ . Let me know if that helps with this issue. If it doe not help, then can you file a separate issue?

@karthiknadig Great! It’s working. Breadcumbs backed and intelisense is correct.

You can’t perform that action at this time.

Источник

Saved searches

Use saved searches to filter your results more quickly

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.

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

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

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

Comments

Happens on Python notebook, Python interactive file (with #%% in many places) as well as just plain Python file.

Version: 1.48.2 (system setup)
Commit: a0479759d6e9ea56afa657e454193f72aef85bd0
Date: 2020-08-25T10:13:11.295Z (4 days ago)
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19041

ms-python.python-2020.8.105045
ms-python.gather-2020.7.2
ms-python.vscode-pylance-2020.8.3

The text was updated successfully, but these errors were encountered:

Looks like you might have a bad update. Do the following to remove stale versions of the extension:

  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).

Reinstallation of all extensions fixed it

edit: I realized that wasn’t quite explicit. Reinstallation of extensions fixed it for me.

Thank you, for letting us know.

Encountered similar problem,
re-install Python and Pylance extension fixed.

Uninstall and reinstall (following the steps above) didn’t work for me.

ms-python.python v2021.5.842923320 is still crashing and printing the error above. I’m working with the Remote — SSH package.

  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).

hey man, A BIG THANK YOU THANK YOU THANK YOU. It Really WORKS .

Any progress @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.

It seems to be working now for me as well.

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.

@KayvanShah1 File a separate bug with details specific to our scenario. That will help us direct you better.

Downgrading to version 2021.5.842923320 fixed the issue for me.

File -> Preferences -> Settings -> Extensions -> Python -> «Python: Language Server«.
or search for it in settings «Python: Language Server» .
change it to Pylance

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.

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?

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.

This is the output of language sercer currently installed on my PC.

Stack overflow. [Info - 17:43:09] Connection to server got closed. Server will restart. [Info - 17:43:10] Analysis cache path: C:\Users\Chuno\AppData\Local\Microsoft\Python Language Server [Info - 17:43:10] Microsoft Python Language Server version 0.5.59.0 [Info - 17:43:10] Workspace root: d:\Users\Chuno\Documentos\Projetos\opencv-course [Info - 17:43:10] GetCurrentSearchPaths d:\Users\Chuno\Documentos\Projetos\opencv-course\venv\Scripts\python.exe [Info - 17:43:10] Interpreter search paths: [Info - 17:43:10] c:\users\chuno\appdata\local\programs\python\python38\dlls [Info - 17:43:10] c:\users\chuno\appdata\local\programs\python\python38\lib [Info - 17:43:10] c:\users\chuno\appdata\local\programs\python\python38 [Info - 17:43:10] d:\users\chuno\documentos\projetos\opencv-course\venv [Info - 17:43:10] d:\users\chuno\documentos\projetos\opencv-course\venv\lib\site-packages [Info - 17:43:10] User search paths: [Info - 17:43:11] Initializing for d:\Users\Chuno\Documentos\Projetos\opencv-course\venv\Scripts\python.exe [Info - 17:43:11] Analysis caching mode: None. Stack overflow. [Error - 17:43:17] Connection to server got closed. Server will not be restarted. 

Источник

Оцените статью