Skip to content

Add #line directives to generated_cases.c.h #102654

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

Closed
gvanrossum opened this issue Mar 13, 2023 · 0 comments
Closed

Add #line directives to generated_cases.c.h #102654

gvanrossum opened this issue Mar 13, 2023 · 0 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@gvanrossum
Copy link
Member

gvanrossum commented Mar 13, 2023

It would be nice if compiler errors in Python/bytecodes.c actually pointed to the file you have to edit.

(Filing for @markshannon.)

Linked PRs

@gvanrossum gvanrossum added the type-bug An unexpected behavior, bug, or error label Mar 13, 2023
@gvanrossum gvanrossum self-assigned this Mar 13, 2023
gvanrossum added a commit that referenced this issue Mar 15, 2023
This behavior is optional, because in some extreme cases it
may just make debugging harder. The tool defaults it to off,
but it is on in Makefile.pre.in.

Also note that this makes diffs to generated_cases.c.h noisier,
since whenever you insert or delete a line in bytecodes.c,
all subsequent #line directives will change.
Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this issue Mar 27, 2023
…on#102669)

This behavior is optional, because in some extreme cases it
may just make debugging harder. The tool defaults it to off,
but it is on in Makefile.pre.in.

Also note that this makes diffs to generated_cases.c.h noisier,
since whenever you insert or delete a line in bytecodes.c,
all subsequent #line directives will change.
warsaw pushed a commit to warsaw/cpython that referenced this issue Apr 11, 2023
…on#102669)

This behavior is optional, because in some extreme cases it
may just make debugging harder. The tool defaults it to off,
but it is on in Makefile.pre.in.

Also note that this makes diffs to generated_cases.c.h noisier,
since whenever you insert or delete a line in bytecodes.c,
all subsequent #line directives will change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants
@gvanrossum and others