M Mozhi v3.7.0 code

Error reference › CLI diagnostics

CLI004

diagnostic output truncated

info
verifiedverified on v3.7.0 categorycli terminalstable code

What 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-run

The 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/CLI004
Run 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.