I’m using the latest version of python-language-server.
It is very slow, taking seconds to show hoverdoc or highlight.
I have disabled all pyls plugins, and when testing just vim.lsp.buf.document_highlight(), it sometimes takes around 5-10 seconds and I can see my CPU load jump to nearly 100% while it hangs.
jedi-language-server is the same.
This can be reproduced for me on code as simple as:
import pandas as pd df = pd.DataFrame() df.merge()
and trying to invoke the highlight function on
Other modules like hover (when I enable it) do the same thing.
How do I debug this? Pyright doesn’t have this issue.