Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compiler Errors (LTX::COMPILER::E001-E004, W001)

The compiler crate owns every error it can produce while turning a manifest into a compiled PDF: missing configuration, missing input files, and engine (tectonic) failures. CompilerError implements miette::Diagnostic, so it converts into a miette::Report and is returned directly from miette::Result functions.

Error Reference Table

CodeVariantDiagnostic MessageRemediation
LTX::COMPILER::E001MissingMainno main file set in ltx.tomlAdd main = "main.tex" under [project].
LTX::COMPILER::E002MissingBuildno [build] section in ltx.tomlAdd a [build] section with engine and name.
LTX::COMPILER::E003MainFileNotFoundmain file {path} not foundCreate the file or fix the main value in [project].
LTX::COMPILER::E004TectonicErrorengine failure {message}Check the engine logs; verify your network connection for bundle issues.
LTX::COMPILER::W001EngineNotImplemented{engine} engine is not implemented yetUse engine = "tectonic", or wait for this engine to land.

Error Categories

Configuration Errors (E001-E002)

These mirror the config-layer validation but occur at compile time, when the resolved CompilerConfig is missing information it needs.

E001 - MissingMain
The [project] section has no main entry, so the compiler doesn’t know which file to compile.

E002 - MissingBuild
The manifest has no [build] section, so the engine and output name are unknown.

Input Errors (E003)

E003 - MainFileNotFound
The main input file resolved from [project].main does not exist on disk at build time. Note the config layer catches this earlier during validation (LTX::CONFIG::E004); this variant covers paths resolved at compile time.

Engine Errors (E004)

E004 - TectonicError
The selected engine failed to fetch its support bundle, create its processing session, or finish the compilation. The message carries the underlying engine error.

Warnings (W001)

W001 - EngineNotImplemented
The selected engine is not wired up yet — only tectonic is available. The warning is rendered through miette and the build still exits successfully.

Diagnostic Example

LTX::COMPILER::W001

  ⚠ `pdflatex` engine is not implemented yet — only `tectonic` is available
  help: use `engine = "tectonic"` in `ltx.toml`, or wait for this engine to
        land