XAML package: large resource dictionaries are cut off and reported as extract.unsupported_syntax #312
Labels
No labels
code-review
correctness
dos
performance
security
severity/high
severity/low
severity/medium
tech-debt
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
h-dv/code-index#312
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Field report from the TimeLine project (de.h-dv.xaml, via
resolution_gaps), 2026-10-04.Four XAML files are only partly indexed:
Themes/Icons.xaml(the client's shared icon resources):extract.unsupported_syntaxDevExpress.Xpf.Charts/Generic/Pie2DModels.xaml:extract.unsupported_syntaxextract.parse_error. These are expected: the files contain template placeholders.Impact: uses of an icon key that appear after the point where extraction stopped are missing from the index. "Where is icon X defined or used" undercounts, and the agent has to fall back to search_text.
Likely cause:
_prdoc/records/80-S12-xaml-reference-package.md§5 describes two ceilings that emitextract.unsupported_syntax:Icon and 3D-model dictionaries hold very long geometry strings (
Data="M…",Geometry,Points) and many resources per file.Two defects:
x:Key,x:Name,x:Class, event handlers, binding paths, type names), never to geometry/data attributes it doesn't emit. A longDatastring must not decline anything.src_offset) or report a distinctextract.truncated/extract.fact_budget_reachedthat names the limit. Prefer indexing in full.Test: a synthetic resource dictionary with about 2,000
<Geometry x:Key=…>entries, each with a ~6 KB path, plus a reference to the LAST key from another file. Every key must be indexed, the last key's reference must resolve, and the diagnostic list must be empty. Mutations: restore the broad name ceiling → red; restore the silent body cut → red.Need from the reporter, if possible: the sizes of
Icons.xamlandPie2DModels.xamland their longest attribute value, to confirm which ceiling fired.Verified fixed and shipped. Commit
f394e94f89is an ancestor of published v0.41.34; its permanent regression is unchanged and passed again in the current native Windows timing lane (PR #490, job 60476).Independent public-runtime check also passes using the official signed XAML 0.3.2 archive (release 769; archive SHA-256 3a4d2e0d302a24fad92cb1dbb1533a1f23746ac1a402a232158a1109049cf901) and installed 0.41.34:
The file stays under the normal 2-MiB input cap. The original 2,000 × 6-KiB suggestion produces a 12-MB input and requires an explicit index size-limit increase; the permanent test documents why it instead preserves both failure-triggering shapes under the default cap. It also records the executed negative controls: restoring the broad attribute ceiling produces unsupported_syntax; restoring the old body cutoff loses the tail and reports node_limit_reached.
The original body-truncation diagnosis was inaccurate: the unsupported_syntax came from applying the name ceiling to unreported geometry attributes. The output budget remains bounded and reports node_limit_reached when exhausted. Cross-directory merged-dictionary reachability remains a separate resolver limitation, not silently accepted by this check.
Closing with public E2E evidence, not another source change or CI run. Receipt:
/tmp/cosi-312-published-e2e/report.json.