Skip to content

Fix: careful with linenumber removal in order to improve code coverage#281

Draft
lkdvos wants to merge 1 commit into
masterfrom
ld-codecov
Draft

Fix: careful with linenumber removal in order to improve code coverage#281
lkdvos wants to merge 1 commit into
masterfrom
ld-codecov

Conversation

@lkdvos

@lkdvos lkdvos commented Jun 15, 2026

Copy link
Copy Markdown
Member

This is a claude-aided attempt of resolving #280.
From what I could tell, the removal of the line numbers is what causes the codecov gaps.

@Jutho I'm not entirely sure if we really need these to begin with, or if this is just a cosmetic thing to make the generated expressions easier to inspect?

In any case, I still have to more carefully investigate if this actually resolves the issue, and additionally if this automatically carries over to @planar and @plansor.

@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Your PR no longer requires formatting changes. Thank you for your contribution!

for p in parser.postprocessors
ex = p(ex)::Expr
end
ex = removeinternallinenumbernodes(ex)::Expr

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure why this is not just added to the list of postprocessors?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The main reason is that @planar adds some more postprocessors, and this guarantees that this processor is ran at the end, and not before that.

@Jutho

Jutho commented Jun 15, 2026

Copy link
Copy Markdown
Member

Other than my comment, I think this looks reasonable. I indeed removed line numbers to make the macroexpanded code more readable.

@lkdvos

lkdvos commented Jun 16, 2026

Copy link
Copy Markdown
Member Author

If the line number removal is just for the macro-expanded code, it might be reasonable to just disable it altogether? That also avoids the issues with @planar etc I think.

Note that I still need to check that this actually fixes the codecov issue, so this PR is not ready

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants