sublimelsp / LSP-pyright

Python support for Sublime's LSP plugin provided through microsoft/pyright.
MIT License
131 stars 13 forks source link

Pyright tooltip syntax can't be loaded #264

Closed AmjadHD closed 1 year ago

AmjadHD commented 1 year ago

image image ST 4152 LSP 1.24.0 LSP-Pyright 1.1.157

jfcherng commented 1 year ago

What if you change this line (https://github.com/sublimelsp/LSP-pyright/blob/1146b23598acb0f0363ab6e51605692122bf367a/syntaxes/pyright.sublime-syntax#L8) to Packages/LSP-pyright/syntaxes/Python.sublime-syntax?

It's likely you have a custom syntax which uses version:1 and LSP-pyright accidentally wants to inherit from it. The default Python has been migrate to version:2 in ST 4152.

jfcherng commented 1 year ago

Likely fixed by https://github.com/sublimelsp/LSP-pyright/commit/9cd3f49c7508bf6cb187f7bb29b136f78310c381. LSP-pyright 1.2.42 released.

We may remove Packages/LSP-pyright/syntaxes/Python.sublime-syntax from this Package and just inherit from the default Python syntax, which also uses version:2 now. But what's the decent migration method on our side?

AmjadHD commented 1 year ago

It's fixed. Thanks.