forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MyPy linting output not being shown in Problems tab #2380
Labels
Comments
I found the issue: The MyPy linter module expects the file always to have a |
7 tasks
DonJayamanne
pushed a commit
that referenced
this issue
Sep 25, 2018
Fixes #2380 The regex expression to match MyPy linter messages expects that the file name has a `.py` extension, that isn't always the case. E.g., `.pyi` files for describing interfaces. - [X] Title summarizes what is changing - [X] Includes a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!) - [X] Unit tests & [code coverage](https://codecov.io/gh/Microsoft/vscode-python) are not adversely affected (within reason) - [X] Works on all [actively maintained versions of Python](https://devguide.python.org/#status-of-python-branches) (e.g. Python 2.7 & the latest Python 3 release) - [X] Works on Windows 10, macOS, and Linux (e.g. considered file system case-sensitivity) - [X] Dependencies are pinned (e.g. `"1.2.3"`, not `"^1.2.3"`) - [X] `package-lock.json` has been regenerated if dependencies have changed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment data
python37
)Actual behavior
mypy and pylint are executed and show errors on the output/python tab, but just the pylint errors are shown on the problems tab.
Expected behavior
problems tab shows both pylint and mypy errors
Steps to reproduce:
dnf install python37
on Fedora)sudo python3.7 -m pip install --pre -U mypy pylint
Logs
Code for test
UPDATE: save file as
name.pyi
Show on problem tab:
Output from
Console
under theDeveloper Tools
panelMy config (relevant parts):
User
Workspace
content of
/usr/bin/mypy3.7
:I've looked in #343 and #1440 also, but no luck.
The text was updated successfully, but these errors were encountered: