Codes d’erreur › ui-chart

Codes d’erreur

ui-chart

erreur avertissement The product's user interface

Ce que cela signifie#

A chart drawn from a list of the model (chart c { value l; item s; line x s.at y s.kw }) that does not hold: no item, or an item called x, y or color; a value that is not a list; a mark with no y, a y that is not a number, an x that is a bool or a record; marks in two units on one y axis (or x), an x that is a time or a text on one mark and a number on another; a rule in another unit than the marks (rule y 45kW over marks in W), a rule naming a requirement there is not, or one with no limit (a warning); as a warning, a mark that reads nothing of its item (the same at every point: a rule), a chart with no mark. docs/ui.md#charts-of-a-list-marks.

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 ui-chart affiche cette explication ; archec explain ui liste les codes de son domaine.