Error codes › wrong-side

Error codes

wrong-side

warning Ports, links and interfaces

What it means#

A port used from the wrong side of a link (an in as a source, an out as a target).

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.

A warning: the model builds, but something is likely wrong.

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

The automatic fix#

buffer, depth, overflow and stale-after move from the out port to the one link that leaves it.

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 wrong-side prints this explanation; archec explain links lists the codes of its area.