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.Dismiss alert
I've been using pylsp for a while along with Emacs/emacs-lsp for working on a Django project, and periodically, although it seems like increasingly more commonly, getting random hangs of the entire stack with pylsp sitting at 100% on at least one core for 60s+, and sometimes never seems to return.
I'm looking for suggestions on how to instrument or otherwise debug what's going on, since on its own that's not a particularly useful bug report.
There's nothing particularly useful in the *pylsp::stderr* output at the default WARN level, and any lower gets pretty spammy since this problem doesn't occur all that regularly.
I can sometimes attach py-spy to the pylsp process, and get something along the lines of:
but not sure if that's actually indicative of a specific problem/cause in jedi, and even if it is, what might be causing it.
I've not encountered much trouble with other projects, so I assume it's something data-specific to this codebase, but it's an internal work app I can't share.
It might be just recency bias, but it seems like it happens more often when editing in pytest test_blah.py type files, so plausibly something is getting a little carried away in the jedi code that handles magic pytest fixtures or something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been using pylsp for a while along with Emacs/
emacs-lsp
for working on a Django project, and periodically, although it seems like increasingly more commonly, getting random hangs of the entire stack withpylsp
sitting at 100% on at least one core for 60s+, and sometimes never seems to return.I'm looking for suggestions on how to instrument or otherwise debug what's going on, since on its own that's not a particularly useful bug report.
There's nothing particularly useful in the
*pylsp::stderr*
output at the default WARN level, and any lower gets pretty spammy since this problem doesn't occur all that regularly.I can sometimes attach
py-spy
to the pylsp process, and get something along the lines of:but not sure if that's actually indicative of a specific problem/cause in jedi, and even if it is, what might be causing it.
I've not encountered much trouble with other projects, so I assume it's something data-specific to this codebase, but it's an internal work app I can't share.
It might be just recency bias, but it seems like it happens more often when editing in pytest
test_blah.py
type files, so plausibly something is getting a little carried away in the jedi code that handles magic pytest fixtures or something?Any ideas on where to go next?
Beta Was this translation helpful? Give feedback.
All reactions