44 ms·
As someone who recently set up something similar in Emacs with eglot I had to ditch Python-LSP-server. It was so incredibly slow to respond, even on a M2 Max M
by josteink 1y ago
As someone who recently set up something similar in Emacs with eglot I had to ditch Python-LSP-server.
It was so incredibly slow to respond, even on a M2 Max MBP, that it lowered my productivity by orders of magnitudes (and made Emacs laggy).
Maybe I did something wrong? I don’t know.
What I do know is that I tried pyright instead as a different LSP-server for Python and I haven’t looked back.
It’s a night and day difference. It’s snappy and everything works as expected, with venvs and mypy too.
- kstrauser 1y agoI agree. I really wanted to like python-lsp-server (aka pylsp), but I felt it's kind of a mess getting everything set up and configured. Loathe as I was to configure a server running in Node to help my editor with Python code, it's far and away the best option I've found so far. I do hope "ruff server" will do for Python LSPs what ruff did for linting and formatting.
- nerdponx 1y agoI haven't tried the Ruff server yet, but Jedi Language Server is usably fast, and does a good enough job.
- kstrauser 1y agoJedi's very nice for refactoring and auto-completion! I get more value from linting and type checking, though, and Jedi doesn't handle those. Pairing it with something like pyright is a great combination if your editor lets you connect to multiple servers.
- kristjansson 1y agoIt's not ready yet, but https://pyrefly.org/ https://pyrefly.org/ might be a good competitor/complement in the future
- tiltowait 1y agoLooks promising! It doesn't work with my poetry environment, but I like what I see so far. Definitely something to watch.
- team_pyrefly 1y agoHi! I'm on the team behind Pyrefly. Thanks for taking a look and raising the need for poetry support. We added a GitHub issue to track that here: https://github.com/facebook/pyrefly/issues/166 https://github.com/facebook/pyrefly/issues/166
- arccy 1y agolast time i looked the people were recommending basedpyright: https://github.com/DetachHead/basedpyright https://github.com/DetachHead/basedpyright
- Hasnep 1y agoI've been recommending it whenever Pylance comes up on HN or Lobsters, the docs explain how to set it up on the most popular editors: https://docs.basedpyright.com/dev/installation/ides https://docs.basedpyright.com/dev/installation/ides