codex - 💡(How to fix) Fix latex-doctor selects obsolete TeX Live bin before current 2026 installation

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

/usr/local/texlive/p2009/bin/powerpc-apple-darwin8.11.0/latexmk -pdf -interaction=nonstopmode -halt-on-error -synctex=1 ... Latexmk: -halt-on-error bad option Lexicographic reverse sorting puts /usr/local/texlive/p2009/... before /usr/local/texlive/2026/..., and the detector accepts paths even when version probing returns Bad CPU type or Exec format error.

RAW_BUFFERClick to expand / collapse

Codex LaTeX plugin latex-doctor appears to select an obsolete TeX Live bin directory before the current one.

Environment:

  • Current PATH latexmk: /usr/local/texlive/2026/bin/universal-darwin/latexmk
  • Version: Latexmk, John Collins, 9 March 2026. Version 4.88
  • latex-doctor selected: /usr/local/texlive/p2009/bin/powerpc-apple-darwin8.11.0/latexmk
  • Selected latexmk version: Version 4.10, 21 August 2009

Observed: latex-doctor reports TeX bin: /usr/local/texlive/p2009/bin/powerpc-apple-darwin8.11.0

It then runs: /usr/local/texlive/p2009/bin/powerpc-apple-darwin8.11.0/latexmk -pdf -interaction=nonstopmode -halt-on-error -synctex=1 ...

This fails with: Latexmk: -interaction=nonstopmode bad option Latexmk: -halt-on-error bad option Latexmk: -synctex=1 bad option

Expected: latex-doctor should prefer the active/current TeX Live installation, especially /usr/local/texlive/2026/bin/universal-darwin when it is on PATH, and should ignore incompatible architecture directories or tools that cannot execute.

Likely cause: scripts/detect_texlive.py uses: sorted(glob.glob("/usr/local/texlive//bin/"), reverse=True)

Lexicographic reverse sorting puts /usr/local/texlive/p2009/... before /usr/local/texlive/2026/..., and the detector accepts paths even when version probing returns Bad CPU type or Exec format error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix latex-doctor selects obsolete TeX Live bin before current 2026 installation