Jedi does not seem to suffer from the same sluggish behavior, nor does Pylance when I open the same project in VSCode. So what’s up with Cursor Pyright? My gut says this is related to the fact that I use Pylance in VSCode, and Cursor Pyright forces "python.languageServer": "None", which just feels off even though the Cursor docs say that that’s right.
Steps to Reproduce
Enable Cursor Pyright
<alt + click> on symbol in Python editor to engage go-to-definition/find references.
Wait 60+ seconds for results to populate
Expected Behavior
Fast go-to-def/-ref functionality on par with Jedi/Pylance
Looks like I already had "cursorpyright.analysis.typeCheckingMode": "off", to no avail. And adding dirs to cursorpyright.analysis.exclude didn’t help either.
Hey, thanks for the extra logs and for trying both workarounds.
Sadly, on projects with around 500 to 800+ Python files, Cursor Pyright can really slow down right now, and exclude or typeCheckingMode: off doesn’t always help.
The best option to try next is the pyrefly or ty extension. They’re Rust-based language servers and are much faster. To try them:
Install pyrefly or ty from the Marketplace
Disable the Cursor Python extension to avoid conflicts
You can set python.languageServer back to the default
Just note they don’t support every cursorpyright setting yet, but go-to-definition and find references should be fast.
If pyrefly or ty doesn’t work for you, your current Jedi workaround is still a solid option.