feat(pdflatex): summarize actionable failures #99
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!99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/pdflatex-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
pdflatexcan wrap long error lines at 79 columns and often ends failed runs withEmergency stop.noise, so preview.nvim's built-in preset can surface truncated or misleading failure notifications. The preset also lacked fixture-backed coverage for the audited failure shapes in #89.Solution
Set
max_print_line=10000on the preset, add apdflatex-specific failure summary that prefers! LaTeX Error, then non-noisefile:line, then non-noise!lines, and fall back to the compiler's generic message when nothing trustworthy is present. Add fixture-backed preset tests covering the audited success, fallback, noisy, wrapped, and canonical failure cases.