Closed rik closed 2 months ago
As explained in the other bug, pyright's config supports globs (wildcard) file and directory specifiers, and it's perfectly legitimate for these globs to match no files or directories. I don't think it would be appropriate to emit an error under these conditions. That is, I think pyright is working correctly, so I'm closing this as "won't fix".
Thanks for the quick feedback.
I'm not asking to emit an error for globs with no matches. I'm asking to have the same behaviour when files/directories are provided via the CLI or via the include
field.
As you said in the other bug:
I guess we could consider it an error if the "root" of the file descriptor (the non-wildcard portion) doesn't exist. That's what we do to emit the "does not exist" error that you are seeing.
Describe the bug https://github.com/microsoft/pyright/issues/6443 fixed the issue when providing files or directories via the CLI. The issue still exists if you have missing files in
pyrightconfig.json
Code or Screenshots
VS Code extension or command-line