Repository navigation
Fix #7751: Use original filename for array exprs - #7752
Conversation
Using a synthetic filename causes an issue for coverage, which cannot find the synthetic file when generating a report. This commit restores the use of the original filename for array expressions in order to resolve the issue.
I seem to recall changing it to help with debug info. I think setting the filename to |
Perhaps an alternative is to suppress emitting debug info for synthetic array expressions, with the aim that the array expression is all seen as part of the source line from which it was generated? |
I think this might be the thing to do. Currently, and invariant of this patch, if you |
|
I've checked locally with |
stuartarchibald
left a comment
There was a problem hiding this comment.
Thanks for the patch.
As title. Alters a test looking for breakpoints on lines that uses arrayexprs to not use arrayexprs as numba#7752 leads to the arrayexpr referencing the source line repeatedly. Fixes numba#7787
Fix numba#7751: Use original filename for array exprs
Using a synthetic filename causes an issue for coverage, which cannot find the synthetic file when generating a report.
This commit restores the use of the original filename for array expressions in order to resolve the issue.
@stuartarchibald I'm not sure about whether this is correct - it fixes coverage, but I couldn't work out from the PR which added the synthetic filename (#7177) why the synthetic filename is used. What are your thoughts here?
Fixes #7751.