Error codes › unresolved

Error codes

unresolved

error Names and references

What it means#

A name does not resolve: type, message, definition, port, function, state, requirement…

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#

A definition, type, interface or other name declared in a file of the project that the model does not include: the message says which file, and the fix adds include "<file>". When several files declare it, each is offered, and none is applied. A name the store has (Pid, Bme280): the fix adds its uses and include. Otherwise the closest name in scope, by edit distance. For a link end, this is a part, or a port of that part. Otherwise a definition, a type, a message or a state. The last choice is to declare the missing name.

In VS Code, the light bulb on the line (Quick Fix) applies it. In the terminal, archec fix main.arche applies it with the other fixes, then checks again.

In the terminal#

archec explain unresolved prints this explanation; archec explain names lists the codes of its area.