fix(modules): two lint preferred fixes that did not hold (fuzz fix-idempotent) #311
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!311
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lint-preferred-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The two pre-existing
fix-idempotentviolations found by the 50k fuzz sessions of #308.@gram-lang/modules/lintexists only ondev/1.6: no changeset.REFERENCE_TO_INGREDIENT(@flour ^&flour): the fix inserted@right after a glued element sigil, and the parser reads^@as fallback text, so^@&flourwas still a reference and the diagnostic came back. No fix is offered when@ # ~ ^ &is glued before the&.MERGED_STEP_LINE(".\n##\n[e]"):opensBlock()only parsed the flagged line (##parses alone), but after the blank line the rest of the step follows it in the new block:##then a bare[e], a parse error. It now parses the flagged line with the rest of its step.Tests: unit tests in
lint-document.test.tsandmerged-step-line.test.ts, both minimized inputs added tofuzz/regressions/(all four fail without the fix). modules / language-server / cli tests, typecheck, lint green;bun run fuzz --iterations 50000 --seed 1234567(the seed that found the second one): 0 signature.