Vize suppression comments do not suppress template-phase diagnostics @vize:ignore-start…
- User
Vize suppression comments do not suppress template-phase diagnostics
@vize:ignore-start/@vize:ignore-endregions and@vize:forgetmust suppress matching diagnostics even when the affected rule runs during the template phase. Suppression boundaries, unmatched directives, and later unrelated diagnostics must retain their normal behavior.Interface
No new interfaces are introduced.
- Assistant
Now let me look at the existing tests for directives:
- Assistant
Now I'll add regression tests to confirm the bug, then fix it:
- Assistant
The bug is confirmed. Now I'll fix the visitor by extending the pre-scan to handle ignore regions and
@vize:forget: - Assistant
Now update the main traversal to remove the now-redundant registration:
- Assistant
All remaining failures are pre-existing on the baseline (config-loader/CLI environment issues, unrelated). Final formatting check and diff review:
- Assistant
Fixed. All 1023
vize_patinatests pass (the only remaining workspace failures are pre-existing on the baseline:build_cliquirks test andvize_cartonpkl/TS config-loader tests, both environment-dependent).Root cause
Template-phase rules (, e.g. ) fire in the per-element traversal that registered / regions and disable ranges — so their diagnostics were reported before the suppression ranges existed. The existing pre-scan (#968) only covered and .
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.