Sublime Forum

[solved] Lsp-pyright not working

#1

Hi All,

I installed sublime modules LSP and LSP-pyright by following instructions found at https://packagecontrol.io/packages/LSP-pyright

Once sublime is started opening a python file I can see the language server started correctly:

home/blabla/.cache/sublime-text/Package Storage/lsp_utils/node-runtime/18.18.1/node/bin/node /home/blabla/.cache/sublime-text/Package Storage/LSP-pyright/18.18.1/language-server/node_modules/pyright/langserver.index.js --stdio

The Sublime default auto-completion stops to work completely and obviously no pyright auto-completion neither.

When I uninstall both LSP and LSP-pyright packages from sublime then the default auto-completion works again.

Obviously my goal is to have LSP-pyright working

These are the versions in use:
Sublime: 4169
LSP: 1.26.0
LSP-pyright: 1.2.62

tnx,

J

0 Likes

#2

The problem seemed to originate from the underlying pyright.
More info can be found here: https://github.com/sublimelsp/LSP-pyright/issues/290

Problem is solved by installing version sublime plugin pyright v1.2.63

0 Likes