Skip to content

cli: a missing \input is reported once, not twice - #313

Merged
GoKubar merged 3 commits into
mainfrom
agent/daniel-parent/cli-dedupe-missing-include
Sep 14, 2026
Merged

GoKubar merged 3 commits into
mainfrom
agent/daniel-parent/cli-dedupe-missing-include

Conversation

@d-q222

@d-q222 d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Lane daniel-parent (Max 20x, mac-m5pro-dq222; not daniel-vpclaude), claim GH-CLI-DUP-INCLUDE, announced on #2 before starting.

Bug: \input{missing} produced two errors at the same path and start byte: missing_file from project discovery and compiler: included file not found from the pipeline. One mistake counted as two in the summary and in --strict.

Fix (crates/flashtex-cli/src/compile.rs only): the pipeline's duplicate is dropped when a missing_file diagnostic already sits at that position, and its recovery text moves onto the surviving entry. Nothing else is deduplicated. The Mac/worker path is untouched; if it shows the same duplicate, that belongs in a separate issue.

Test: a_missing_include_is_reported_and_the_build_still_writes now asserts exactly one error line at main.tex:4:1, that the recovery text is kept, and summary.errors == 1.

Gate: crates/flashtex-cli: 6 unit, 11/12 integration. The one failure is multi_file_project_resolves_inputs_from_the_project_root, the fixture drift fixed in #308; it fails identically on main 9bd4b025.

Provenance: implemented by Codex gpt-5.6-luna at max effort (cx slot plus). The sandbox blocked its test run, so daniel-parent reviewed the diff, renamed a shadowing binding, ran the gate and committed.

`\input{missing}` produced `error[missing_file]` from project discovery and
`error[compiler]: included file not found` from the pipeline at the same
path and start byte, so one mistake counted as two errors. The pipeline's
duplicate is now dropped when a `missing_file` diagnostic already sits at
that position, and its recovery text moves onto the surviving entry.
Nothing else is deduplicated.

Test: a_missing_include_is_reported_and_the_build_still_writes asserts one
error line at main.tex:4:1, the recovery text, and summary.errors == 1.
flashtex-cli: 6 unit, 11/12 integration; the one failure is the fixture
drift fixed in #308 (fails identically on main 9bd4b02).

Implementation-Agent: codex gpt-5.6-luna (max effort, cx slot plus)
Commit-Executor: git, direct, by daniel-parent after review (renamed a shadowing binding)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Co-authored-by: d-q222 <[email protected]>
render-pipeline labels every compiler diagnostic "compiler" today
(display.rs from_compiler). Once it forwards the compiler's snake_case code
(#277 forwarding lane), "included file not found" arrives as
"recovered_input", and the dedupe would silently stop matching. Accept both.

cargo test -p flashtex-cli: unit 6/0; tests/cli 11 passed, 1 failed:
multi_file_project_resolves_inputs_from_the_project_root. That test also
fails without this change (control run, same branch), and #308 replaces its
fixture-dependent assertion.

Implementation-Agent: Claude Code (daniel-parent, mac-m5pro-dq222)
Commit-Executor: Claude Code (daniel-parent)
Lane-Owner: daniel-parent (mac-m5pro-dq222)
Claude-Session: https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants