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

Closed
ManPython opened this issue Jun 24, 2020 · 8 comments
Closed

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

ManPython opened this issue Jun 24, 2020 · 8 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@ManPython
Copy link

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

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.

@ManPython ManPython added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Jun 24, 2020
@karthiknadig karthiknadig self-assigned this Jun 24, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jun 24, 2020
@karthiknadig
Copy link
Member

@ManPython For the language server failed issue, can you share what you get in the Output > Python panel?

@ManPython
Copy link
Author

ManPython commented Jun 27, 2020

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

@karthiknadig
Copy link
Member

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

@ghost ghost removed the triage label Jun 30, 2020
@ManPython
Copy link
Author

ManPython commented Jul 5, 2020

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

@karthiknadig
Copy link
Member

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

@ManPython
Copy link
Author

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

@karthiknadig
Copy link
Member

karthiknadig commented Jul 7, 2020

@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?

@ManPython
Copy link
Author

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants