feat(pdflatex): summarize actionable failures #99

Merged
barrettruth merged 1 commit from feat/pdflatex-failure-summary into main 2026-04-26 01:36:43 +00:00
barrettruth commented 2026-04-26 01:35:35 +00:00

Problem

pdflatex can wrap long error lines at 79 columns and often ends failed runs with Emergency 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=10000 on the preset, add a pdflatex-specific failure summary that prefers ! LaTeX Error, then non-noise file: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.

## Problem `pdflatex` can wrap long error lines at 79 columns and often ends failed runs with `Emergency 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=10000` on the preset, add a `pdflatex`-specific failure summary that prefers `! LaTeX Error`, then non-noise `file: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.
Sign in to join this conversation.
No description provided.