panel-bind
What it means#
An Arche app widget's bind (or port) that the app would not find when the simulation runs: a part, or a member of one (ctl.levle), the model does not have — an error; a state compared that the part does not have (pump.state == "Runing") — an error; .state of a part with no states, a name that is not a part, a constant, a message, a widget of the panel or a name of its script, or one name of the wrong kind for the widget (a slider, a dial or a gauge on a state or a bool; a led or a toggle on a state or a text; a value on a whole part) — a warning. A bind is Python the app runs: the names of the model in it are references, so go to definition and rename follow them.
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 panel-bind prints this explanation; archec explain presentation lists the codes of its area.