-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pyright support #299
Comments
Damn you, Microsoft |
As of microsoft/pyright#810 pyright language server can be installed via npm
|
Doesn't seem to be in the npm registry?
|
@nymann Was missing the package, pyright-langserver --stdio is the command invoked, the package is pyright |
FYI while we wait for the PR
this will not add, remove, or list the workspace folders, but those functions I think can be added to your init.vim |
Pylance support If you need.
|
Unfortunately, as of v2020.10.3 running Pylance outside of Visual Studio Code no longer works 😞 $ node ~/.vscode/extensions/ms-python.vscode-pylance-2020.10.3/dist/server.bundle.js --stdio
You may install and use any number of copies of the software only with
Microsoft Visual Studio, Visual Studio for Mac, Visual Studio Code, Azure
DevOps, Team Foundation Server, and successor Microsoft products andservices
(collectively, the “Visual Studio Products and Services”) to develop and test
your applications. The software is licensed, not sold. This agreement only
gives you some rights to use the software. Microsoft reserves all other rights.
You may not: work around any technical limitations in the software that only
allow you to use it in certain ways; reverse engineer, decompile or disassemble
the software, or otherwise attempt to derive the source code for the software,
except and to the extent required by third party licensing terms governing use
of certain open source components that may be included in the software; remove,
minimize, block, or modify any notices of Microsoft or its suppliers in the
software; use the software in any way that is against the law or to create or
propagate malware; or share, publish, distribute, or lease the software (except
for any distributable code, subject to the terms above), provide the software
as a stand-alone offering for others to use, or transfer the software or this
agreement to any third party. |
Using Pyright directly is also the recommended and supported way and that still works. |
It still works, thanks for @aca 👍
But why not just use pyright? |
|
Hi all, please keep issues on topic |
Due to license issue, I had to delete my repo. Sorry for pylance.nvim user. |
Pylance has not been supported since the end of 2020 when Microsoft decided to make Pylance a VSCode only option. A hook for it is hence no longer necessary.
Microsoft is moving on to a proprietary language server backend for python in vscode, pylance, which is implemented on top of the pyright library. It seems like development will be ceasing on the C# Microsoft Python Language Server in favor of this implementation (which is JS based, but apparently somehow much faster). Pyright also includes a language server implementation (sans some additional ML powered intellisense features in pyright). Coc has added support via coc-pyright and there has been some discussion on using the pyright in emacs lsp-mode [here] (emacs-lsp/lsp-mode#1863).
I managed to get nvim to launch and connect to the pyright language server as follows:
But currently it fails with:
The text was updated successfully, but these errors were encountered: