microsoft / microsoft/vscode-mypy

Mypy won't show warnings for identical open files when reporting scope is set to workspace

Open
#129 1 comment 1 reaction 1 assignee Claimed by @karthiknadig View on GitHub
triage-needed
Dominant language
Python
Stars
150
Forks
39
Avg merge
21h 45m
Merged PRs (30d)
8

Description

To repro:

1. Set `mypy-type-checker.reportingScope` to `workspace`
1. Create and save a file with any content that shows a Mypy error. For example `print("hi`
2. Then create and save another file with the same content.
3. Open them side by side and notice Mypy only shows the error for one of them:

https://github.com/microsoft/vscode-mypy/assets/45497113/e4fcd8cc-1024-40ae-bcc8-f78c9b48762b

Works as expected if scope is set to `file` instead

[mypylogs.txt](https://github.com/microsoft/vscode-mypy/files/12458006/mypylogs.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.