Skip to content
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

Fix issues with locating/parsing source during DebugInfo emission. #7744

Merged
merged 2 commits into from
Jan 26, 2022

Conversation

stuartarchibald
Copy link
Contributor

This works around issues with source that cannot be parsed when
looking for a line containing def so as to get the correct line
info for use in DebugInfo emission. It adds tests for this and
also the case where the function source is simply unobtainable.

Fixes #7730

This works around issues with source that cannot be parsed when
looking for a line containing `def` so as to get the correct line
info for use in DebugInfo emission. It adds tests for this and
also the case where the function source is simply unobtainable.

Fixes numba#7730
esc
esc previously requested changes Jan 26, 2022
Copy link
Member

@esc esc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two suggestions for slightly improved testing. Looks good otherwise.

numba/tests/test_debuginfo.py Show resolved Hide resolved
numba/tests/test_debuginfo.py Show resolved Hide resolved
@esc esc self-assigned this Jan 26, 2022
@esc esc added 4 - Waiting on author Waiting for author to respond to review and removed 3 - Ready for Review labels Jan 26, 2022
@esc esc dismissed their stale review January 26, 2022 10:33

Nevermind. The initial strings are already the same.

esc
esc previously approved these changes Jan 26, 2022
Copy link
Member

@esc esc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@esc esc added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on author Waiting for author to respond to review labels Jan 26, 2022
Conflicts:
	numba/tests/test_debuginfo.py
@stuartarchibald
Copy link
Contributor Author

776f5df fixes conflicts against mainline.

@stuartarchibald stuartarchibald added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 5 - Ready to merge Review and testing done, is ready to merge labels Jan 26, 2022
Copy link
Member

@esc esc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-approved.

@esc esc added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Jan 26, 2022
@sklam sklam merged commit 4785d8f into numba:master Jan 26, 2022
esc pushed a commit to esc/numba that referenced this pull request Jan 27, 2022
Fix issues with locating/parsing source during DebugInfo emission.
esc pushed a commit to esc/numba that referenced this pull request Jan 27, 2022
Fix issues with locating/parsing source during DebugInfo emission.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to merge Review and testing done, is ready to merge Effort - medium Medium size effort needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Unexpected" indentation can break DI emission
3 participants