Variable DIAGNOSTIC_CODESConst
DIAGNOSTIC_CODES: readonly [
"syntax",
"unsupported",
"undefined-command",
"undefined-environment",
"undefined-reference",
"duplicate-label",
"missing-file",
"missing-font",
"overfull-box",
"underfull-box",
"budget-exceeded",
"limit-exceeded",
"stopped",
"internal",
] = ...
The closed set of machine-readable diagnostic codes. Closed on purpose: the editor branches on these (an
unsupportedgets a "not in the supported subset" affordance, anundefined-referencedoes not), and an exhaustive union makes a missing branch a typecheck error rather than a silent default. A new engine chunk that needs a new code adds it here, in one line.The distinction that carries D38's loud-failure contract:
unsupported— real LaTeX that Atrium's engine deliberately does not implement. This is the first-class case: it must be produced, never swallowed, so a document never renders quietly wrong.undefined-command— not LaTeX at all (a typo, or a macro never defined).