Skip to content

Not working with pyright #51

Answered by PurpleMyst
ashwinprasadme asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to be related to sending workspaceFolders in initialize. If you set that property to None, 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 any workspaceFolders in initialization is a start.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@ashwinprasadme
Comment options

Comment options

You must be logged in to vote
3 replies
@Akuli
Comment options

Akuli Aug 10, 2022
Collaborator

@PurpleMyst
Comment options

@Akuli
Comment options

Akuli Aug 10, 2022
Collaborator

Comment options

You must be logged in to vote
1 reply
@PurpleMyst
Comment options

Comment options

You must be logged in to vote
1 reply
@ashwinprasadme
Comment options

Answer selected by ashwinprasadme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants