guard
What it means#
A transition's guard that the simulator cannot read, so the transition never fires: a name not defined (a typo, [cuont > 3]), a type that does not fit, or a guard that does not parse ([n >]). It is read as the browser simulator reads it: the action language, with the part's variables, constants, enum values ([mode == ON]) and the trigger's fields ([n > 3], [msg.n > 3]) in scope, self. dropped; else Python's translation ([x in (1, 2)], [a < b < c]), or TypeScript's in a TypeScript part. Python the action language does not say (isinstance()) is Python's own in a part written in Python. A sentence in brackets ([la tuile est alimentée]) is a warning: write it when "…", which is never checked.
How to fix it#
The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.
archec check --beginner says the most common messages in plain words, with the names that exist.
The automatic fix#
archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).
In the terminal#
archec explain guard prints this explanation; archec explain behaviour lists the codes of its area.