Troubleshooting
The messages mantish diff can print, and what to do about each one.
"no mantish engine answered at …"
Nothing is serving. Install and start one:
mantish-engine install
mantish-engine start
mantish-engine status
mantish diff starts an installed engine by itself; downloading one needs your consent, so the first install is a manual step. If the message names the address --server or MANTISH_SERVER gives, that address is pinned — Mantish will not start or follow a local engine instead. Drop the flag or unset the variable to let it.
"the server at … is not a working mantish engine"
Something is listening on that port, but it is not Mantish. Check the address, or pick another port with mantish-engine start --port 9011 and point --server at it.
"cannot write a comparison as text: it does not advertise diff-export/1"
Your engine is older than the text formats. Update it:
mantish-engine update
The same applies to presentation-overrides/1, which any tag flag needs — including --no-mute, and including a tag set coming from a profile. Without the tag sets, an older engine still opens the review.
An unknown tag id
--hide nope: not a change tag this engine knows (valid: formatting, code-style, whitespace, …)
The message lists every id that flag takes. See the tag reference. Some tags can never be muted or hidden (logic, refactoring, breaking, newpackage, version-bump), and rename is decided by rename policies rather than by flags.
"--format tui needs a terminal"
You asked for the review screen in a pipe, a script or a CI job. Use --format diff, json, side-by-side or markdown — or simply drop --format, since auto picks text there.
A flag that does not belong to the format
--split applies to the interactive review, and --format diff writes text
--width applies to --format side-by-side, and --format json has no columns
--context applies to text output, not to the interactive review
Display flags belong to --format tui; --context and --exit-code belong to the text formats; --width belongs to side-by-side. Mantish refuses the combination rather than ignoring the flag. Settings inherited from a profile are not applied where they mean nothing, so a shared profile does not have this problem — only an explicit flag does.
"--width 39: must be a whole number of cells from 40 to …"
40 cells is the narrowest layout that can still show two columns. The default, 160, is independent of your terminal size so that captured output does not depend on the window it was captured in.
"HEAD moved … while the working tree was exported"
A commit, checkout or rebase landed while the export was reading. Nothing was written; run it again. A file edited mid-export is refused the same way, rather than mixing two versions into one document.
"no differences"
The two files or trees are byte-identical, so there is nothing to open. This is a success (exit 0).
A broken configuration file
Every configuration error names the file, the field and the problem. To get working again while you fix it:
mantish diff --no-profile
That skips config.json and every profile; your TUI preferences and engine defaults still apply.
The review looks empty
Look at the end of the output, then rerun with --stats before assuming nothing changed:
# 12 files not shown: every edit hidden by the selection— your selection hid everything in those files. Try--no-hide.# modified; not compared: timed out— the engine stopped analysing that file at its per-file budget; the rest of the comparison is complete. Read that file withgit diff.- With
--stats,# edits: 0 visible, 12 omittedsays the same in counts. # coverage: incomplete— some files were not analysed (binary, too large, unsupported language). The coverage section names them.- A whitespace mode other than
exactmakes some differences invisible to the analysis, so they can be neither shown nor counted.