Error codes › ui-binding

Error codes

ui-binding

error warning The product's user interface

What it means#

What a ui element is bound to, or what its action does, that does not hold: a name the ui does not see (its part's variables, port.MESSAGE.field, state, part.state, part.variable, constants), a value of the wrong type for the element (a gauge, bar, slider or stepper shows a number, a toggle a bool, enabled and visible take a condition), a unit other than the element's or its range's, a send of a message the port does not send or with arguments its fields do not take, a goto to no screen, a variable of another part set. The message says what was expected.

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 ui-binding prints this explanation; archec explain ui lists the codes of its area.