Skip to content

Legacy Python jedi language server takes ~100% CPU while debugging #12522

@cuteufo

Description

@cuteufo

This is a copy of the issue at here. They suggested me to raise the issue here and closed that one.

Version: 1.46.1
Commit: cd9ea64
Date: 2020-06-17T21:17:14.222Z
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0

Steps to Reproduce:

Use default language server "Jedi". Start debugging my project.
My project is running as HTTP Server taking POST request, processing request, and sending response back. While debugging, the code can be run line by line smoothly, no hanging or deadlocking, but a python process is running and taking up to ~100% CPU
截屏2020-06-23 上午6 56 19

And this is the ps info of this process:
截屏2020-06-23 上午6 56 46

In most cases, this python process keeps high CPU consumption until I stop debugging, while occasionally it just won't go low unless I exit VSCode.

After I change language server to "Microsoft", this situation hasn't happened so far.

Does this issue occur when all extensions are disabled?: Yes. With Jedi language server, after I disabled all extensions other than Python extension, this issue still occurs.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions