Error reference › CLI diagnostics
CLI004
diagnostic output truncated
infoWhat it means
To keep output readable and memory bounded, the engine stores at most 200 diagnostics. When the limit is hit, this informational note is appended.
Trigger condition
More than 200 diagnostics were produced in one run.
Minimal failing example
(a file with hundreds of independent syntax errors)Verified fix
fix the reported errors and re-runThe note appears with severity `info` and never affects the exit code.
What the interpreter prints
error[CLI004]: diagnostic output truncated
--> app.mz:1:16
1 | (a file with hundreds of independent syntax errors)
| ^
|
reason: (the exact problem, with positions)
help: (a suggested fix appears here)
docs: https://crossberry-in.github.io/mozhi-doc/errors/CLI004Run
mozhi --json run app.mz to get the same information as
machine-readable JSON (schema mozhi.diagnostics.v1), or --verbose to
also show grouped related diagnostics. See the CLI reference.Suggested fix
Fix errors iteratively — after each round the remaining ones are reported.
Related syntax
CLI: diagnostics output
Related diagnostics
None
Reference links
Limitations
Counts in the JSON summary reflect what was kept, not what was dropped; the note is the only signal that truncation happened.