Not working with pyright #51
-
I'm trying to get this working with pyright. I'm running the tests from the repo and added pyright start command, i.e., The initialization is getting passed, i.e., However, after that, I do not seem to receive any more responses from the server, Diagnostic response is not received, even the hover methods do not seem to return anything.
Since I'm new to this, I thought someone can help me here. Please let me know, thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I can look into this too, maybe in a few weeks, because I too would like to use pyright with sansio-lsp-client :) Things I would try next:
|
Beta Was this translation helpful? Give feedback.
-
I'm unable to test this directly, however this discussion seems to attest that It might be that we need to switch to using |
Beta Was this translation helpful? Give feedback.
-
Here's something: I've noticed |
Beta Was this translation helpful? Give feedback.
-
This seems to be related to sending
I'll need to look further into how |
Beta Was this translation helpful? Give feedback.
This seems to be related to sending
workspaceFolders
ininitialize
. If you set that property toNone
, the tests seem to run.pyright
creates a default workspace for files that you haven't provided a workspace for.I'll need to look further into how
pyright
handles workspaces and the like, but the fact that it works if you just don't send anyworkspaceFolders
in initialization is a start.