target-name
What it means#
Two names of the model that the generated code makes one, or a name a target keeps for itself: maxSpeed and max_speed are both max_speed in C, C++ and Rust; the fields speed and Speed both Speed in Go; errno or linux is a C macro, self a Rust keyword no r# escapes, send the Go part's own Send, init the C part's own <part>_init. Read with the generators' own names (cIdent, cConst, goIdent, goExport, Rust snake case). A warning that names the targets; an error for the language a deployment's binary is written in (language go): that code would not compile. Rename one.
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.
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 target-name prints this explanation; archec explain code lists the codes of its area.