Closed
Description
Environment data
VS Code version: 1.18.1
Python Extension version: 0.8.0
Python Version: 3.6.3
OS and version: MacOS High Sierra 10.13.1
Actual behavior
MyPy appears to run correctly and shows linting output in the Output panel, but it is not parsed and displayed as problems. PyLint is also running and does properly display problems.
Expected behavior
Both MyPy and PyLint should be parsed and display under the problems tab.
Steps to reproduce:
- Workspace settings:
{
"files.autoSave": "afterDelay",
"python.pythonPath": "${workspaceRoot}/.direnv/python-3.6.3/bin/python",
"python.linting.mypyEnabled": true,
"python.formatting.provider": "yapf"
}
- MyPy settings (
mypy.ini
)
[mypy]
show_column_numbers = True
ignore_missing_imports = True
follow_imports = silent
# Strict mode
no_implicit_optional = True
disallow_untyped_calls = True
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_subclassing_any = True
check_untyped_defs = True
strict_optional = True
warn_unused_ignores = True
warn_unused_configs = True
warn_redundant_casts = True
warn_return_any = True
- PyLint settings: https://gist.github.com/jlindsey/5f42ca8ddce8fc0049cf3bd9a449198a
- Edit a file to produce MyPy and PyLint errors
- See only PyLint errors parsed into Problems tab
Logs
Output from Python
output panel
##########Linting Output - mypy##########
dns_requests_api/jira.py:92:12: error: Incompatible types in assignment (expression has type "datetime", variable has type "str")
dns_requests_api/jira.py:93:23: error: "str" has no attribute "isoformat"; maybe "format"?
dns_requests_api/jira.py:98:12: error: Item "str" of "Union[str, List[Any]]" has no attribute "append"
dns_requests_api/jira.py:115:39: error: Call to untyped function "dump" in typed context
dns_requests_api/jira.py:123:12: error: "Logger" has no attribute "fatal"
dns_requests_api/jira.py:131:17: error: Dict entry 0 has incompatible type "str": "str"; expected "str": "Dict[Any, Any]"
dns_requests_api/jira.py:135:12: error: "Logger" has no attribute "fatal"
dns_requests_api/jira.py:138:8: warning: Returning Any from function declared to return "Dict[Any, Any]"
##########Linting Output - pylint##########
************* Module dns_requests_api.jira
35,0,convention,C0301:Line too long (101/100)
-------------------------------------------------------------------
Your code has been rated at 9.88/10 (previous run: 10.00/10, -0.12)
Output from Console window
(Help->Developer Tools menu)
command 'python.updateFeedbackCounter' not found: Error: command 'python.updateFeedbackCounter' not found
at t._tryExecuteCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:1117373)
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:1117212
at n.Class.define.cancel.then (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:69309)
at t.executeCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:1117186)
at e.$executeCommand (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2823079)
at t.e.invoke (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2876809)
at e._invokeHandler (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2440566)
at e._receiveOneMessage (file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2440256)
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2439283
at file:///Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:9:2441202
e.onUnexpectedError @ shell.ts:459
(anonymous) @ shell.ts:419
e.onUnexpectedError @ errors.ts:119
o @ errors.ts:138
e.$onUnexpectedError @ mainThreadErrors.ts:26
e.invoke @ abstractThreadService.ts:41
e._invokeHandler @ rpcProtocol.ts:109
e._receiveOneMessage @ rpcProtocol.ts:96
(anonymous) @ rpcProtocol.ts:32
(anonymous) @ rpcProtocol.ts:157
e.invoke @ callbackList.ts:36
e.fire @ event.ts:123
(anonymous) @ ipc.net.ts:82
emitOne @ events.js:96
emit @ events.js:191
readableAddChunk @ _stream_readable.js:178
Readable.push @ _stream_readable.js:136
onread @ net.js:560