-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Describe the bug
The LSP (not VSC-ext) has slow:
- startup
- completion
- show doc (hover)
- exit (closing)
I can consistently repro the message:
Error: Timed out waiting for language servers to shutdown
On helix 25.07.1 (b74e2694)
Code or Screenshots
Pretty much any file, no matter how small, is enough to reproduce.
However, I recommend a file that has at least 1 function, so that the "hover speed" can be tested
VS Code extension or command-line
Are you running pyright as a VS Code extension, a language server in another editor, integrated into Pylance, or the command-line tool? Which version?
I've installed v1.1.407 using this cmd:
deno i -gf -A npm:pyright/langserver.index.js -n pyright-langserverSo far, I've only tested it when connected to Helix, while the LSP runs on Deno 2.6.0
As I've mentioned here, it was much faster on the same device.
I suspect there's something different about my environment, or maybe a newer version of Deno or Helix? The only major diff on my env (since the last time I've seen pyright being fast) is that I've replaced GNOME by KDE-Plasma, but that doesn't seem like it should be relevant.
My initial suspicion was that the LSP was somehow scanning my entire $HOME because it couldn't find the project root, so it assumed ~ was the root. But then I've tested on a directory containing a an empty setup.py and it was still slow