-
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
Integrated problems output doesn't support --show-error-end mypy option #20044
Comments
Currently we don't support customized output when using the problems window. We parse the output and collect details of what went wrong. So, the only arguments that are supported are the ones that don't change the output format. If you need to use |
Just realised the title was wrong. The problem isn't adding the |
Confirmed that the behavior reported in @AntonVucinic's latest comment is the case:
EXPAND for platform / package version info
Expected Behavior
|
Please try this extension: https://marketplace.visualstudio.com/items?itemName=ms-python.mypy-type-checker It should handle |
Suggested Solution
I'm not an expert at TypeScript, but from the looks of that code it seems feasible. Also, based on the output of |
@karthiknadig Thanks! I just refreshed the page after typing up the above comment and saw the other extension suggested. I'll check it out to see if it works. |
@karthiknadig After testing out the new
Manually running that EDIT: So, it looks like the old Expand for
|
It seems I may have spoken too soon. After some more testing, it appears that I'm running into a bug with similar behavior to: microsoft/vscode-mypy#88 After making no changes and re-saving the file, the new extension re-runs EDIT: I just tested following the suggestion to try setting |
@trinitronx I will be adding a setting to switch between daemon and regular |
Closing this now as the |
Type: Bug
Behaviour
Expected vs. Actual
After replacing default
--show-column-numbers
with--show-error-end
inpython.linting.mypyArgs
array, the whole part of the code that is causing the error should be highlighted (default setting highlights only the token at the starting position), instead errors stop apearing in the problems view and no errors are highlighted in the code.Steps to reproduce:
x: int = 'a'
)--show-column-numbers
to--show-error-end
inpython.linting.mypyArgs
settingDiagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2022.16.1
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.22000
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2
The text was updated successfully, but these errors were encountered: