Repository navigation
Conversation
ultravioletcatastrophe
force-pushed
the
fix/unterminated-info-log-parsing
branch
from
November 3, 2026 07:27
fe15619 to
c17e6b7
Compare
deathaxe
reviewed
Nov 3, 2026
deathaxe
left a comment
Member
There was a problem hiding this comment.
Thanks for reporting and opening a PR.
Here are some suggestions for a more general fix.
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.
Problem
On TeX Live with the Traditional Builder, an undefined command can produce
running latexmk...error, followed byNo errors. Warnings:and[Build failed!], with no source location. The.logstill contains an ordinary! Undefined control sequence.andl.<number>.Reproduced with Sublime Text 4215, LaTeXTools 4.5.17 (also current master), latexmk 4.88 and TeX Live 2026 on macOS.
Minimal reproductions
A four-line example matching the original report:
A single-file example requiring only the standard article class:
Build with the default Traditional Builder, or generate the log using:
The TeX error is intentional. The bug is the missing diagnostic/location, not the nonzero exit status.
Cause and fix
latexmk -silentappends-interaction=batchmode, changing where blank lines appear in the log. UnterminatedInfo:messages can then absorb register allocations and subsequent file-opening records.log-cmd-argscan mistake the next file opening for a multiline parenthesized command argument; later closing parentheses corrupt the source-file scopes.parse_log_view.extract_itemsrecognizes the exception but only emits items inside ameta.block.logregion. After the root file scope ends prematurely, later exceptions are silently discarded. This also explains misattributed warnings.The change keeps register allocations out of info messages and reuses the existing
blocksparser for file records encountered inside those messages. No builder or error-text special cases are added.This is distinct from #1718: the reproduction uses TeX Live and the traditional
!/l.Nerror format, not MiKTeX's file:line error format.Verification
display_log: false, and the Tufte MWE. The build panel reportstufte-patched.tex:3: Undefined control sequence ...;find_all_results()includes that source file at line 3. The build correctly remains failed because the undefined command is intentional.builder_settings.display_log: trueselects-verbose, keepsnonstopmode, and produces the source diagnostic in the real build panel. A top-leveldisplay_logsetting is ignored. The troubleshooting docs include the correct nesting and the need to regenerate a cached failed log.test_filepath_processingfails both before and after, on Windows-path normalization/order; it is intentionally unchanged. Before the fix, the two new regressions fail in addition to that existing failure.No private document source or full document log is included.