Repository navigation
cli: fold per-font warnings into one entry; watch clears the terminal between rebuilds (stacked on #303) - #310
Closed
d-q222 wants to merge 2 commits into
Conversation
…n watch rebuilds `--diagnostics=full` printed one entry per math font for the same `math_resource_profile` warning (4 of HW1's 6 diagnostics). Positionless diagnostics that differ only in a leading `name:`, wherever else the message repeats that name, now print as one entry listing every name: warning[math_resource_profile]: lmex10, lmmi10, lmmi8, lmsy10: glyphs drawn from latinmodern-math ... The summary counts, `--diagnostics=short`, piped output and `--json` are unchanged; nothing is hidden or reclassified. `watch` clears a terminal before each rebuild so the latest run is the only one on screen (piped stderr is untouched). Tests: 2 new unit tests (fold in place with the name repeated in the message; located, single and multi-word-name diagnostics never rewritten). flashtex-cli: 15 unit, 12/13 integration; the one failure is the fixture drift fixed separately in #308. Implementation-Agent: daniel-parent (mac-m5pro-dq222) Commit-Executor: git, direct Co-authored-by: d-q222 <[email protected]>
This was referenced Sep 14, 2026
Contributor
Author
GoKubar
pushed a commit
that referenced
this pull request
Sep 14, 2026
… (re-opened #310 onto main after #303 merged) (#387) * cli: rustc-style diagnostics with a source excerpt and carets (#277 part 2) `flashtex check`/`build`/`watch` print each diagnostic as a header, a `--> file:line:col` pointer, the source line(s) under a line-number gutter, carets under the byte span and a wrapped `= recovery:` line. - `--diagnostics=full|short|json`: full is the new form; short is the unchanged one-line `line_text`; json is `--json`. The default is full when stderr is a terminal and short otherwise, so piped output and scripts see exactly what they did before. - `--color=auto|always|never`; auto is on for a terminal unless NO_COLOR. - Uses only the fields a diagnostic already has (code, message, span, recovery). Structured labels/help from #277 part (1) can be added to the renderer without changing this path. - Spans: tabs expanded so carets line up, multi-byte text, empty spans and spans past the end of the text get one caret, spans longer than four lines show the first two and the last. Tests: 7 renderer unit tests, one end-to-end test for the flags. The pre-existing multi_file_project_resolves_inputs_from_the_project_root failure reproduces on unmodified main 9bd4b02 and is not touched here. Implementation-Agent: daniel-parent (mac-m5pro-dq222) Commit-Executor: git, direct Co-authored-by: d-q222 <[email protected]> * cli: fold per-font warnings into one entry, clear the terminal between watch rebuilds `--diagnostics=full` printed one entry per math font for the same `math_resource_profile` warning (4 of HW1's 6 diagnostics). Positionless diagnostics that differ only in a leading `name:`, wherever else the message repeats that name, now print as one entry listing every name: warning[math_resource_profile]: lmex10, lmmi10, lmmi8, lmsy10: glyphs drawn from latinmodern-math ... The summary counts, `--diagnostics=short`, piped output and `--json` are unchanged; nothing is hidden or reclassified. `watch` clears a terminal before each rebuild so the latest run is the only one on screen (piped stderr is untouched). Tests: 2 new unit tests (fold in place with the name repeated in the message; located, single and multi-word-name diagnostics never rewritten). flashtex-cli: 15 unit, 12/13 integration; the one failure is the fixture drift fixed separately in #308. Implementation-Agent: daniel-parent (mac-m5pro-dq222) Commit-Executor: git, direct Co-authored-by: d-q222 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane
daniel-parent(Max 20x, mac-m5pro-dq222; not daniel-vpclaude), claimGH-CLI-OUTPUT-NOISE, announced on #2 before starting. Stacked on #303. The base is that branch, so this diff shows only the new commit; retarget tomainonce #303 merges.Change (terminal presentation only)
--diagnostics=full: positionless diagnostics that differ only in a leadingname:fold into one entry that lists every name, even when the message repeats the name. On HW1 that is 4 of its 6 diagnostics.watchon a terminal: clears the screen before each rebuild, so only the latest run is visible.6 warnings),--diagnostics=short, piped output,--json, the worker protocol, the compiler and the pipeline. No warning is hidden or reclassified.HW1,
--diagnostics=full(tail)Before:
After:
The piped short output still has all 4
math_resource_profilelines.Tests