fix: update fypp linemarker-resync patch header for fypp 3.2#1439
Conversation
The original patch was written against an older fypp version where the target hunk began at line 1842 with 11 old / 16 new lines. In fypp 3.2 the same code sits at line 1848 and the hunk is smaller (7 old / 13 new), causing 'patch' to reject the file as malformed and emit a startup warning on every mfc.sh invocation. Regenerated the patch directly from the installed fypp 3.2 source. The actual change (adding 'or True' to always emit resync linemarkers after single-line $: calls) is identical.
Claude Code ReviewHead SHA: d2c3a8d Files changed:
Findings
- if unsync or multiline:
+ if unsync or multiline or True:
The risk is that a future maintainer who doesn't notice the The correct minimal patch would be to either omit the |
Addressed code review feedback: 'if unsync or multiline or True' makes the unsync/multiline sub-expressions dead code. Since the intent is to always emit a resync linemarker after a $: call, remove the if guard entirely and dedent the body, making the unconditional behaviour explicit in the code rather than hiding it behind a tautological condition.
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Summary
The fypp linemarker-resync patch (added in #1436) was written against an older fypp version where the target hunk began at line 1842 with
@@ -1842,11 +1842,16 @@. In fypp 3.2 the same code sits at line 1848 and the surrounding context is smaller, sopatchrejects the file as malformed and emits a warning on everymfc.shinvocation:The patch header has been regenerated directly from the installed fypp 3.2 source, producing the correct
@@ -1848,7 +1848,13 @@counts. The actual change to fypp (addingor Trueto always emit resync linemarkers after single-line$:calls) is identical.Test plan
patchapplies cleanly against fypp 3.2 with no errorgrep "Always emit a resync marker" $FYPP_PYconfirms the patch is active./mfc.shinvocations./mfc.sh precheckpasses (all 6 checks)