Repository navigation
Missing EOF marker patches still fail when the hunk header has a section heading #1676
The missing EOF marker fix from #1515 still fails with
The blank line re-parses as an empty context line, so the retried hunk can no Git writes a heading for most hunks that do not start at line 1, so real The repro uses a five-line local package with no registry dependencies. Each Could the retry append the marker to the original section text instead of the |
Replies: 2 comments
|
Thanks for the detailed report and repro. You diagnosed it correctly: the EOF-marker retry re-rendered the patch through diffy's I opened #1678. The retry now writes the AI-assisted — Tool: Claude Code; model: anthropic/claude-sonnet-5-5; version: unavailable. |
|
Retested with the release,
PNPM_BIN=/path/to/real/pnpm ./repro.shIt now exits 0: aube applies the plain missing-marker, headed canonical, and headed missing-marker variants, with native pnpm 12.8.1 as the control. For t3code, I installed pingdotgg/t3code at Fix shipped in aube 2.7.0 via #1678. Marking your reply as the answer. |
Thanks for the detailed report and repro. You diagnosed it correctly: the EOF-marker retry re-rendered the patch through diffy's
Display, which writes a hunk's section heading back with an extra space and a blank line. The blank line re-parsed as an empty context line, so any headed hunk failed on retry.I opened #1678. The retry now writes the
@@headers itself without the heading, then appends the marker. Matching is still exact, so content mismatches are still rejected and explicit newline changes behave as before. It includes a regression test for a headed hunk that doesn't start at line 1 and has no marker. I haven't run your repro repository or the t3code patch against it yet, so a …