microsoft / microsoft/vscode-mypy

The problem found by mypy do not shown in PROBLEMS

Open
#206 8 comments 9 reactions 1 assignee Claimed by @karthiknadig View on GitHub
bug needs investigation
Dominant language
Python
Stars
150
Forks
39
Avg merge
21h 45m
Merged PRs (30d)
8

Description

In OUTPUT-Mypy Type Checker I can see mypy really runs and finds some problem in my file, but there are not shown in PROBLEMS

The OUTPUT-Mypy Type Checker ouput:
```
2023-11-02 13:15:50.666 [info] file://path/to/file//ks.py :
path/to/file//x_xerr.py:5:1:5:1: error: Library stubs not installed for "pandas" [import-untyped]
path/to/file//x_xerr.py:5:1:5:1: note: Hint: "python3 -m pip install pandas-stubs"
path/to/file//x_xerr.py:5:1:5:1: note: (or run "mypy --install-types" to install all missing stub packages)
path/to/file//x_xerr.py:6:1:6:1: error: Skipping analyzing "optax": module is installed, but missing library stubs or py.typed marker [import-untyped]
path/to/file//x_xerr.py:7:1:7:1: error: Skipping analyzing "pzflow": module is installed, but missing library stubs or py.typed marker [import-untyped]
path/to/file//reg.py:2:1:2:1: error: Skipping analyzing "scipy.spatial": module is installed, but missing library stubs or py.typed marker [import-untyped]
path/to/file//ks.py:2:1:2:1: error: Skipping analyzing "utilize.ndtest": module is installed, but missing library stubs or py.typed marker [import-untyped]
path/to/file//ks.py:2:1:2:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
path/to/file//ks.py:3:1:3:1: error: Skipping analyzing "utilize.Bcorner": module is installed, but missing library stubs or py.typed marker [import-untyped]
path/to/file//ks.py:5:1:5:1: error: Skipping analyzing ".grid_search": module is installed, but missing library stubs or py.typed marker [import-untyped]
path/to/file//ks.py:94:1:94:16: error: Missing positional arguments "arg0", "arg1" in call to "print_mean_std" [call-arg]
```
When I set Reporting Scope as workspace, it actually show all problems in PROBLEMS, but when I click the problem, it open a new file named `path/to/file/ks.py` but not jump to the corresponding line in current opened file (`ks.py`). Actually, `path/to/file/ks.py` and `ks.py` are same file.
![image](https://github.com/microsoft/vscode-mypy/assets/50664099/c4c4376a-2007-472a-8219-c9704113eb27)

If this behavior is by design, how could I set the extention to make it as previous. By "previous", I mean when we use
```json
{
"python.linting.mypyEnabled": true,
"python.linting.enabled": true
}
```
to use mypy. In that time, all found problems will be shown in PROBLEMS, when I click the reported preblems, it just jump to the corresponding line in current file.

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.