Skip to content
Archee Docs

Diagnostics

The one-line diagnostic format and every code arc check reports, with the fix for each.

Every diagnostic is one line:

id rule: what → fix (@source)

@source is omitted when there is none.

shaft2/tau_ok calc.check: check `tau_ok` failed → adjust design parameters so the check holds
shaft2/d_min U01: length expected, got torque → divide by tau before cbrt
shaft2/tau C01: label "Bảng 10.9" not in uploads/x/index.json → use one of: "Bảng 10.5", "Bảng 10.6"

The id is the path of the node: gbox/shaft2/s1 is port s1 of instance shaft2 in gbox. In an expression, write it with dots: shaft2.s1.d.

Codes

CodeMeaning
L01A bad character or a tab
P01An unexpected token
P02An unclosed brace
P03The file is not canonical; run arc fmt
P04A reserved member, shape or pose
U01A dimension mismatch
U02An unknown unit
U03A root of a dimension with a bad exponent
U04A non-integer in an integer context
N01An unknown name, including an unknown paper id
N02A duplicate id
E01A cycle in the values or formula calls
E02An unbound in
E03An override of an unknown field
E04Two overrides of one field
E05A variant chain that is too deep
E06A formula received invalid inputs, produced a nonfinite result or exceeded its expansion limit
C01 to C05Citation errors; see Citations
M01A mate between ports of the wrong kind
M02A missing port or library reference
A01An assumed value (information)
A02A prose section whose values changed
calc.checkA check that failed

Severity

A resolution or type error fails arc check with exit 1. A01 is information and does not change the exit code.

Fix loop

  1. Run agentcad arc fmt FILE for P03.
  2. For every other code, read the fix after the arrow, edit the line and run agentcad arc check DIR again.