5 ms·
I opened a random python project on my machine in Zed and it automatically loaded up an LSP for python. It looks like it's using the same one as my emacs uses
by philsnow 3y ago
I opened a random python project on my machine in Zed and it automatically loaded up an LSP for python. It looks like it's using the same one as my emacs uses (pyright), but it presents completion choices in a not particularly useful order. Typing `os.p` gives me for instance as completion choices:
pwritev
pwrite
putenv
popen
pipe
path
P_ALL
P_PID
pread
pardir
P_PGID
P_WAIT
... but then I type 'a' and then backspace and it gives some of the same choices, but in a different order
P_ALL
path
pread
pardir
P_WAIT
[etc]
here's a gif of it, I'm just typing and backspacing through "os.path" and watching the completions be in an unguessable order: https://snap.philsnow.io/2024-01-24T13-57-09.q7pyi8re104uqhnprtph.gif https://snap.philsnow.io/2024-01-24T13-57-09.q7pyi8re104uqhn...
Is pyright just giving Zed all the possibilities and it's up to Zed to rank them? I don't know the details of editor/LSP integration. lsp-whatever in emacs ranks these choices in a reasonable order.
- thearrow 3y agoI’m also curious about the answer to this! I noticed similar behavior when opening a Typescript project. Enjoy the low latency, but I’d also appreciate accurate/helpful autocomplete suggestions.
- dr_kiszonka 3y agoInteresting. I sometimes have the same issue with pyright (via pylance) in VS Code on Win.
- MrJohz 3y agoYeah, I noticed while writing Typescript that it was suggesting `String` above `string`. In Javascript and Typescript, there are almost no situations where `String` is the correct thing to use, so this choice surprised me. I tried it out today, and in all fairness it is a very attractive and pleasant-to-use editor, but it felt like it was missing a lot of the little details. Things like suggestion order, or being able to open terminals side-by-side, or showing quickly where all the type errors are in my project or even a single file. The collaboration tools sounds really neat, but unless I can convince colleagues to use it with me, I don't have anyone to collaborate with! For that, the little details are hugely important. That said, it looks and feels wonderful, it's a very elegant tool.