panel-bind
Ce que cela signifie#
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.
Comment le corriger#
Le message dit ce qui ne va pas et où, et souvent ce qui était voulu (Did you mean …?). Modifiez le modèle pour que ce que décrit cette page ne soit plus vrai, puis vérifiez à nouveau : archec check main.arche.
archec check --beginner reformule les messages les plus courants en mots simples, avec les noms qui existent.
La correction automatique#
archec n’a pas de correction propre à ce code. Quand le message dit Did you mean …?, VS Code propose ce changement (Quick Fix).
Dans le terminal#
archec explain panel-bind affiche cette explication ; archec explain presentation liste les codes de son domaine.