Svelte grammar rejects legal text ampersands, greater-than signs and Svelte 5 attachments #429

Closed
opened 2026-10-23 22:09:50 +02:00 by buildagent · 2 comments
Member

A1X E4 on core 0.41.14 (ea08d164), de.h-dv.svelte 0.2.0 reports five partial sources after embedded dispatch recovery. Independently reproduced all three minimal files with the published signed package and published 0.41.14 CLI/worker via isolated plugin check --repo (no partner database changes):

<p>drag & drop</p>
<div class=""> ></div>
<div {@attach foo}></div>

Each reports extract.parse_error. The pinned tree-sitter-svelte-ng 1.0.2 grammar excludes both & and > from its text rule and has no attach production. E4 located these in CalendarImportButton/IcalEventsPreviewTable/Components, ContextMenu, and BaseDataGridBody respectively. No diagnostic message/span is currently recorded, only the code.

Fix grammar at its owned source/reproducible build boundary, regenerate kind IDs and extractor together, bump the immutable package version and preserve genuine malformed-input diagnostics. Add package-CI fixture assertions for each trigger, existing template/script boundaries and narrow attachment reference semantics; do not suppress parse errors in the host. Related #279 is the broader testing gap, not this specific syntax defect.

A1X E4 on core 0.41.14 (ea08d164), de.h-dv.svelte 0.2.0 reports five partial sources after embedded dispatch recovery. Independently reproduced all three minimal files with the published signed package and published 0.41.14 CLI/worker via isolated `plugin check --repo` (no partner database changes): ```svelte <p>drag & drop</p> ``` ```svelte <div class=""> ></div> ``` ```svelte <div {@attach foo}></div> ``` Each reports `extract.parse_error`. The pinned tree-sitter-svelte-ng 1.0.2 grammar excludes both & and > from its text rule and has no attach production. E4 located these in CalendarImportButton/IcalEventsPreviewTable/Components, ContextMenu, and BaseDataGridBody respectively. No diagnostic message/span is currently recorded, only the code. Fix grammar at its owned source/reproducible build boundary, regenerate kind IDs and extractor together, bump the immutable package version and preserve genuine malformed-input diagnostics. Add package-CI fixture assertions for each trigger, existing template/script boundaries and narrow attachment reference semantics; do not suppress parse errors in the host. Related #279 is the broader testing gap, not this specific syntax defect.
Author
Member

Released in Svelte 0.2.1, with core 0.41.15. The published binary passed signed runtime acceptance for legal text ampersands/greater-than signs, attachments and attachment-to-TypeScript binding across restart. An upgrade using the actual official signed 0.2.0→0.2.1 packages reproduced the old parse error and cleared it without deleting the existing database; its inode was preserved. The actual package and channel were independently admitted with compiled trust anchors. Final release CI is green. Separate resolution gaps #433 and #434 remain open.

Released in [Svelte 0.2.1](https://git.h-dv.de/h-dv/code-index/releases/tag/pkg/de.h-dv.svelte/v0.2.1), with [core 0.41.15](https://git.h-dv.de/h-dv/code-index/releases/tag/v0.41.15). The published binary passed signed runtime acceptance for legal text ampersands/greater-than signs, attachments and attachment-to-TypeScript binding across restart. An upgrade using the actual official signed 0.2.0→0.2.1 packages reproduced the old parse error and cleared it without deleting the existing database; its inode was preserved. The actual package and channel were independently admitted with compiled trust anchors. [Final release CI](https://git.h-dv.de/h-dv/code-index/actions/runs/1628) is green. Separate resolution gaps #433 and #434 remain open.
Author
Member

Partner confirmation after upgrading to core 0.41.15 (065c8864), Svelte 0.2.1 and C# 0.1.7: all five previously failing Svelte components now extract successfully, Svelte refusals are zero, and the existing database was kept. Reported partial sources fell from six to one; the remaining one is a known malformed dataset fixture, outside Svelte. Historical parse-error contribution rows remain only in retired generations marked deleting, not the live projection. This confirms the syntax repair on a real partner project as well as the release fixtures. The separate Svelte resolution issues #433/#434 remain open.

Partner confirmation after upgrading to core 0.41.15 (`065c8864`), Svelte 0.2.1 and C# 0.1.7: all five previously failing Svelte components now extract successfully, Svelte refusals are zero, and the existing database was kept. Reported partial sources fell from six to one; the remaining one is a known malformed dataset fixture, outside Svelte. Historical parse-error contribution rows remain only in retired generations marked `deleting`, not the live projection. This confirms the syntax repair on a real partner project as well as the release fixtures. The separate Svelte resolution issues #433/#434 remain open.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index#429
No description provided.