-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
mypy error reporting should include column position #1216
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
Comments
It would be nice to have the column numbers as well. We are planning a parser rewrite and that might make this easy enough to implement. |
Yeah, the parser rewrite should make this info easily available. |
was there any progress here? pretty interested in this too |
I apologize, we have been occupied with higher priority projects. Thanks for showing your interest though -- we'll be sure to bump the priority eventually. (We also accept PRs of course.) |
happy to attempt a PR at some point, not super familiar with the code yet thoughts:
for the parser, this would mean modifying both fastparse, fastparse2 and parse? |
We're phasing out parse.py, but yes, both fastparse{,2}.py would need to be
updated. The big question is whether typed_ast, which we use for the actual
parser, is collecting this info. If not, we have to modify typed_ast first.
|
When mypy is run with `--show-column-numbers`, error messages include columns. Column numbers are 0-based. Fixes #1216.
This was done. Thanks to Ben Duffield! Note that you need to use |
Thank you so much guys! This is amazing! |
Currently it seems that only line number is included, and confusion will be introduced when there's multiple errors in the same line. Is there any plans to improve this?
The text was updated successfully, but these errors were encountered: