feat(latex): summarize latexmk failures #98

Merged
barrettruth merged 1 commit from feat/latexmk-failure-summary into main 2026-04-26 01:30:14 +00:00
barrettruth commented 2026-04-26 01:29:38 +00:00

Problem

Latexmk failures often end in boilerplate or cascading Emergency stop. lines, so preview.nvim's built-in LaTeX preset can surface a misleading failure notification. The preset also lacked fixture-backed coverage for the real failure shapes audited in #88.

Solution

Add a latex preset failure_summary that walks result.output in order, returns the first non-==> file:line: or ! error, and otherwise falls back to the compiler's generic message. Add fixture-backed and adversarial preset tests covering success, boilerplate-only logs, missing packages, noisy cascades, emergency-stop fallback, and paths with spaces.

## Problem Latexmk failures often end in boilerplate or cascading `Emergency stop.` lines, so preview.nvim's built-in LaTeX preset can surface a misleading failure notification. The preset also lacked fixture-backed coverage for the real failure shapes audited in #88. ## Solution Add a `latex` preset `failure_summary` that walks `result.output` in order, returns the first non-`==>` `file:line:` or `!` error, and otherwise falls back to the compiler's generic message. Add fixture-backed and adversarial preset tests covering success, boilerplate-only logs, missing packages, noisy cascades, emergency-stop fallback, and paths with spaces.
Sign in to join this conversation.
No description provided.