From the python example, how to have pyright detect imports from same workspace folder #578
Replies: 3 comments 22 replies
-
@kaisalmen When using @William14689 I believe the issue is that these files you're creating are completely virtual on the user side and aren't registered on the language server. The language server only sees what's on the disk file system of the backend and whatever has been explicitly sent to it using the |
Beta Was this translation helpful? Give feedback.
-
I have given this a try and the client does send a jsonrpc. Without putting it into another container via
|
Beta Was this translation helpful? Give feedback.
-
I'm also not able to get this working. I've created a minimal repro branch here: https://github.com/lukeautry/monaco-languageclient/pull/1/files onDidOpen/onDidSave is being called for the secondary file: Pyright can't find the file or import from it. @William14689 - were you ever able to get this working? @CGNonofr @kaisalmen - would you mind taking a look? Thanks for all your work so far! |
Beta Was this translation helpful? Give feedback.
-
I am currently using the provided Python Language client and pyright language server example and it is working.
However, I am not sure how to have the current file importing from another file within the same workspace folder. Somehow pyright lsp is unable to pick the imported file in the workspace.
I have tried with the below but it is unable to work:
Beta Was this translation helpful? Give feedback.
All reactions