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
(🐞 ) Column marker in error message off when line contains non ASCII character
#102310
Comments
Can confirm on Note: |
@benjaminp, @pablogsal (as parser experts) update: @gvanrossum, @lysnikolaou (as new parser experts) |
Verified bug in installed 3.10.10, 3.11.2, and 3.12.a5. |
What do you think about this?
Or do we need to highlight the symbol exactly? |
@sobolevn In absence of other feedback, your solution looks better than nothing. So it's worth to create a PR and get it merged before 3.12b1. |
Will do :) |
…nGH-103663) (cherry picked from commit 0fd3891) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
b"Ā"
Here the caret is pointing to blackspace after the code
So each non-ASCII character is adding more incorrect offset:
Expected
Linked PRs
The text was updated successfully, but these errors were encountered: