-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Extension causes high cpu load #3963
Comments
Is this with the language server or Jedi? |
The python extension is ms-python.python - repository - https://github.com/Microsoft/vscode-python. I'm running MS Code on a Linux machine and I was using a sftp connection to a remote server - and editing a file over that connection. I did not activate the python virtual environment on the remote machine before I started editing. That is the reason the IDE could not resolve all definitions. This would be the reason that "Go to Definition" should not have worked. It would be better if that task failed quickly with a Not Found message. |
In the settings for the Python extension, is the "Jedi Enabled" checkbox set or cleared? |
The "Jedi Enabled" checkbox is set |
The profile says that it's stat calls which are taking about 40% of the time which is in line with mounting a remote file system. @spopp when you say "[VS Code] does not know how to find", are you saying the module isn't available and so there's no chance to find it, or just that it's taking too long to find? |
My apologies for replying so late. There is no chance of finding the code. The remote machine has a code base that depends on pip installs into a virtual environment. Steps:
I sometimes attach to the remote file system using sftp, then use Visual Studio to edit (adding diagnostics code). The virtual environment will never be activated using sftp. There is no chance of finding the code - no chance that "Go to Definition" will work. It's not always obvious which definitions can be found (in the code) and which ones are in the virtual environment without digging deeper, so a quick response from "Go to Definition" would be useful - perhaps a user settable time limit. |
The extension expects the source to be available, so it not functioning as expected when the source isn't available isn't surprising. I think you want our remote editing scenario from #79. |
Your remote editing scenario from #79<#79>? - is locked.
brettcannon commented on Sep 24, 2018
We are going to lock this issue as no one has a convenient work-around to share with people at the moment and to keep notifications down to just to updates we may share in the future.
I will say that we are actively working on a design to solve this with the VS Code team itself. I can't give an ETA since this is a cross-team collaboration and the work isn't finished yet, but please rest assured we are not ignoring this feature request.
Stephen Popp | Sr. Software Engineer
1 (315) 863-3517
Spectrum|> | Navisite
ENTERPRISE
…________________________________
From: Brett Cannon <[email protected]>
Sent: Monday, March 4, 2019 7:52 PM
To: Microsoft/vscode-python
Cc: Popp, Stephen P; Mention
Subject: Re: [Microsoft/vscode-python] Extension causes high cpu load (#3963)
The extension expects the source to be available, so it not functioning as expected when the source isn't available isn't surprising. I think you want our remote editing scenario from #79<#79>.
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#3963 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABbz7TFQH2QGaxf1VJ5MwZHT_ss6RMlqks5vTb_ngaJpZM4Z7gGN>.
|
@spopp Yep, it's locked for the reasons you cited. My point is you can follow that issue if you want as that's how we plan to solve your problem. |
Performance
python
2018.12.1
Linux x64 4.10.0-38-generic
1.30.2
Click on in imported class name - and drop on "Go to Definition" - on a definition it does not know about because I am opening a folder on a remote machine, and MS Code does not know how to find..
/home/spopp/ms-python.python-unresponsive.cpuprofile.txt
ms-python.python-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
The text was updated successfully, but these errors were encountered: