-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Ambiguous invalid syntax error for a missing comma #123123
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
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Comments
cc @pablogsal |
Oh this may be that some line information is not being propagated properly. Will take a look soon |
Seems that somehow this is a side effect of our change to always use the traceback module as I bisected this to:
|
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 18, 2024
pablogsal
added a commit
to pablogsal/cpython
that referenced
this issue
Aug 19, 2024
Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
that referenced
this issue
Aug 19, 2024
) Signed-off-by: Pablo Galindo <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Aug 19, 2024
…pythonGH-123131) (cherry picked from commit 48856ea) Co-authored-by: Pablo Galindo Salgado <[email protected]> Signed-off-by: Pablo Galindo <[email protected]>
pablogsal
added a commit
that referenced
this issue
Aug 19, 2024
GH-123131) (#123147) gh-123123: Fix display of syntax errors covering multiple lines (GH-123131) (cherry picked from commit 48856ea) Signed-off-by: Pablo Galindo <[email protected]> Co-authored-by: Pablo Galindo Salgado <[email protected]>
jeremyhylton
pushed a commit
to jeremyhylton/cpython
that referenced
this issue
Aug 19, 2024
…python#123131) Signed-off-by: Pablo Galindo <[email protected]>
blhsing
pushed a commit
to blhsing/cpython
that referenced
this issue
Aug 22, 2024
…python#123131) Signed-off-by: Pablo Galindo <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
Trying to run the following code:
results in a
SyntaxError
that looks like:On 3.13+, the first three characters are also highlighted in red. I would expect the end of the line (where the comma should be) to be marked, the
foo=bar
line, or possibly the entire line.Interestingly, if you remove the indentation, then the error looks as expected:
CPython versions tested on:
3.12, 3.13, CPython main branch
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: