feat(typst): summarize the first compiler error #101
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/preview.nvim!101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/typst-failure-summary"
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?
Problem
The built-in
typstpreset already parses short-format diagnostics, but failed compiles still fall back to generic failure notifications even when the first actionable error message is available. The preset also lacked fixture-backed coverage for watch-mode boilerplate, CLI fallback shapes, warning-only output, and other audited typst failure forms.Solution
Reuse
parse_typstfor a preset-levelfailure_summarythat returns the firstERRORdiagnostic message and falls back for warning-only or non-source-located CLI output. Add fixture-backed preset coverage for the audited typst shapes and a compiler smoke test that routes the real typst preset summary through the notification path.