You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For one python-lsp-server is written in Python but pyright is written in TypeScript. Depending on how well you know each of the languages you may find it easier to contribute to one project or the other (but presumably it would be easier for target audience to contribute to python-lsp-server). pyright is a more recent server and has a strong emphasis on typing support (but you need to configure it to do so as the actual typing are only distributed in the closed-source pylance). Also pyright requires you to install node.js and npm, which is something that many users prefer to avoid. Finally before contributing to pyright you would need to sign a CLA with Microsoft, whereas python-lsp-server is more of an open source community supported project.
Reacted by smautner, Eason Huang, Ruggero, Alex George, Jochen Sprickerhof, Fidel Ramos, kuator, Mike Wilkerson, auxsvr, Mo Bitar and 15 more
Reacted by Felix Schwarz, Mike Wilkerson, kuator, Nathan Huisman, Jacobsin, Kazutoshi Noguchi, Gabriel, paddyan2001, pavlovator, Richar Muñico Samaniego and 2 more
I think so. There are some other things to improve for signatures too, like recognising that signature overloading is now common in Python and sending these multiple signatures to the user instead of the first one only.
Reacted by Carlos Cordoba, Alex George, Fidel Ramos, kuator, Pavel Atanasov, mat-r, Tiou Lims and mEm
@krassowski "There are some other things to improve for signatures too, like recognising that signature overloading is now common in Python and sending these multiple signatures to the user instead of the first one only."
I came here for this exact point. Is it fixed or worked on?
In Neovim, a weird behaviour persists as of today. When querying for signature help, only the first one is shown, even though the syntax itself suggests the use of an overloaded method (in the picture, it concerns the get() intrinsic dict class method.)
On the other hand, when querying for signature hover (in insert mode, while typying the function parameters), both overloads are shown, but on the same line, which makes it hard to distinguish (this is probably caused by how the client (Neovim) handles the situation):
But it is bizarre the fact that the server only provides the first match in one case, and both in the other.
Activity
[-]python-language-server vs Pyright language server.[/-][+]python-lsp-server vs Pyright language server.[/+]mkubasz commentedon Sep 21, 2021
CPU usage. In my case, pls use fewer CPU resources then pyrigth.
krassowski commentedon Sep 21, 2021
For one
python-lsp-serveris written in Python butpyrightis written in TypeScript. Depending on how well you know each of the languages you may find it easier to contribute to one project or the other (but presumably it would be easier for target audience to contribute topython-lsp-server).pyrightis a more recent server and has a strong emphasis on typing support (but you need to configure it to do so as the actual typing are only distributed in the closed-sourcepylance). Alsopyrightrequires you to installnode.jsandnpm, which is something that many users prefer to avoid. Finally before contributing topyrightyou would need to sign a CLA with Microsoft, whereaspython-lsp-serveris more of an open source community supported project.krassowski commentedon Sep 21, 2021
pyrightalso supports some undocumented behaviour of LSP like sendingnullto close signature requests, as it well comes from the creators of LSP.ccordoba12 commentedon Sep 23, 2021
@krassowski, that sounds interesting. Could we implement sending null's here too?
krassowski commentedon Sep 25, 2021
I think so. There are some other things to improve for signatures too, like recognising that signature overloading is now common in Python and sending these multiple signatures to the user instead of the first one only.
MicEsp22 commentedon Jan 14, 2024
@krassowski "There are some other things to improve for signatures too, like recognising that signature overloading is now common in Python and sending these multiple signatures to the user instead of the first one only."
I came here for this exact point. Is it fixed or worked on?

In Neovim, a weird behaviour persists as of today. When querying for signature help, only the first one is shown, even though the syntax itself suggests the use of an overloaded method (in the picture, it concerns the
get()intrinsicdictclass method.)On the other hand, when querying for signature hover (in insert mode, while typying the function parameters), both overloads are shown, but on the same line, which makes it hard to distinguish (this is probably caused by how the client (Neovim) handles the situation):

But it is bizarre the fact that the server only provides the first match in one case, and both in the other.
Add the pyright language server (#2797)
Add the pyright language server (#2797)
Add the pyright language server (apache#2797)
Add the pyright language server (apache#2797)