-
Notifications
You must be signed in to change notification settings - Fork 133
Server is stuck on some file probably #750
Comments
Are you on stable channel or beta? New 0.2+ LS is available at the beta channel. "python.analysis.downloadChannel": "beta" |
I'm having a similar problem with a small project where the Microsoft.Python.Language.Server takes a large amount of CPU and never completes. Intellisense gets stuck showing "Loading...". @MikhailArkhipov Where does the above line for the beta channel go? I've tried adding it to both User and workspace settings but I get "Unknown configuration setting". |
Just stick it in your settings.json. You can ignore the warning; it's an undocumented option for testing. |
@jakebailey Thanks for the reply. Is that all that's needed? Is the new LS part of the existing download or should I see some sort of update at some point? Despite restarted VSC in Activity Monitor I see the LS still chewing away at my CPU. |
You need likely need to restart VSC. If you look at the Python output in the output panel, you should see the LS version being used printed. |
@strefethen did it help you? I think this setting worth mentioning in README. A way to provide stack trace is good too |
This setting won't be needed for very long, we're going to release this to stable once we have a few last things worked out. We spread this info to various issues to get testers who previously had resource/performance issues before we launch it for everybody at once. |
With beta server doesn't stuck anymore. Rename still doesn't work at all And warning
|
Rename is not implemented yet in the new code base, that is #577 |
@Yanpas I'm still seeing high CPU though I'm not seeing just "Loading..." anymore though I'm not getting identifiers either I just see vars that are in the currently open .py file. It definitely seems like either a) I have some misconfiguration or b) it's just not working. I haven't had much time to actually debug what's happening so apologies I can't offer more ATM. |
@strefethen - are you on LS 0.1 or 0.2 (beta channel) |
@MikhailArkhipov I'm sorry, I really haven't dug into the beta channels at all and I'm just using the setting mentioned above so I really don't know. How can I tell? Nothing new seemed to update when I added the above setting AFAICT and I've restarted VSC multiple times. I did get a "VSCode wants to install help..." message this morning but I don't know what specifically updated. |
There should be a message in the output window telling version of the LS when it starts. Something like
|
@MikhailArkhipov I was seeing that sort of output the other day but I'm not seeing that now. I'm opening VSC in a folder with a Python application running on OSX. I've just uninstall/reinstalled both the MSFT Python extension and the VS Intellicode extension and I get zero content in the Output console opening a .py file. I'm using Python 3.6.5 and VSC 1.32.3. |
Have you selected the "Python" option for the output panel? There's a dropdown on the right. |
🤦♂️ No. Here's the output:
|
OK, look into the |
I see the following:
I'm guessing having both versions is not a good thing (tm). |
It's fine, the most recent one would be used. You may want to restart your editor (if you haven't recently) to trigger an update to the latest version (0.2.23 at the moment). In your
You'll get more info in the output panel than before. (I wouldn't recommend pasting all of it, but if something is getting stuck you should see the output stop moving.) |
And if the extension doesn't update the language server, you can delete those languageServer directories and the download will be forced. |
@jakebailey I now have 0.2.23, my CPU has settled down and Intellisense looks to be working. Really appreciate your help! Thank you. |
Closing then |
I have a project with over a thousand different python files. I can't use this LS there since it stops respond after some time (renames take infinite time): memory stops to grow after 1.5G resident memory is consumed and CPU load is 12% (100% on one cpu core).
There are no guides here how to provide debug info. I have tried to attach with dotnet debugger, but the stack trace is hidden. GDB doesn't show anything meaningful.
Consider add timeout to parsing threads.
The text was updated successfully, but these errors were encountered: