6 ms·
I'm really excited for this. Yes, pyright is fast enough, 99% of the time. But the install story, requiring npm etc, is a bit of a pain. A rust based version
by deckiedan 2y ago
I'm really excited for this.
Yes, pyright is fast enough, 99% of the time. But the install story, requiring npm etc, is a bit of a pain.
A rust based version with similar install ease as ruff would be great.
Additionally, if it is a lot faster, I think it should unlock more possibilities for eager search to improve the lsp.
Quite often the pyright lsp doesn't find auto imports - there's just too much many places to search.
I'm following this with great interest!
- scienceplease 2y agoIn the interim, check out basedpyright [1]. It's an up-to-date fork of pyright with some improvements, less arbitrary limitations, and does not require npm to install. [1] https://github.com/detachhead/basedpyright https://github.com/detachhead/basedpyright
- lemontheme 2y agoI was thrilled to learn about basedpyright recently. It does a great job of filling in some of the missing parts of pyright that MS deemed a better fit for pylance – which is a vs code exclusive. Easy to install with pipx. As with pyright, I’ve noticed `--createstubs` helps against slowness when working in modules that import large untyped packages.
- maleldil 2y agoDo you have experience with it in production? Is it a drop-in replacement with respect to existing pyright configuration?
- heresie-dabord 2y agoAgree that this looks useful. I actively do not want NPM in my toolchain.
- retrochameleon 2y agoPyright requires npm?! Wtf!
- odiroot 2y agoPython LSP Server works great, is easier to install and even offers some optional extensions. https://github.com/python-lsp/python-lsp-server https://github.com/python-lsp/python-lsp-server
- abhijeetpbodas 2y agoThis unfortunately has `docstring-to-markdown` as one of its dependencies, which is a pain to install behind corporate pip proxies because it's under GPL.