Error codes › unknown-unit

Error codes

unknown-unit

info Types, values and units

What it means#

A unit not in the units catalog.

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.

Information: nothing to fix unless it is not what you meant.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

The closest unit of the catalog. Declaring the unit is offered.

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 unknown-unit prints this explanation; archec explain types lists the codes of its area.