Error codes › check-name

Error codes

check-name

error Requirements and traces

What it means#

A check reads a name or calls a function it does not have. A kind's check reads its elements' properties and relations, name, label, kind, self, parent, children, a kind of its children. The functions are count, len, sum, min, max, abs, exists, matches, and on the model vars, fns, ports, parts, states, transitions, requirements, tagged, has, reachable. With a did-you-mean.

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.

An error: archec builds nothing until it is fixed.

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