Error code · a mistake in the document

dt::unknown-control

The element has no control by that name.

What the program says

dt::unknown-control

  × `dirt` has no control `tpo`
   ╭─[example.dtile:3:18]
 2 │ tile size="1x1" {
 3 │     stack { dirt tpo="3dmm" }
   ·                  ─┬─
   ·                   ╰── unknown control
 4 │ }
   ╰────
  help: did you mean `top`?
        explain: https://shawn-vincent.github.io/dharmatiles/e/unknown-control
        offline: dharmatiles explain dt::unknown-control

What to do

Check the spelling against the element's page; the message names the nearest control.

Broken, then fixed

Gives dt::unknown-control
dharmatiles version="1.0.0"
tile size="1x1" {
    stack { dirt tpo="3dmm" }
}
Mended, it reads clean
dharmatiles version="1.0.0"
tile size="1x1" {
    stack { dirt top="3dmm" }
}

The rule

Every mistake gets a message with a stable code (such as dt::unit), the line it is on with the spot underlined, and a hint that says what to write instead. The program reads on past a mistake, so all of a file's mistakes come together. dharmatiles check my-tile.dtile reports them without building (it takes --system, --printer and --seed like build, so a mistake that only shows on OpenLOCK is caught too); the preview shows them beside the tile. Two examples, from one file:

Read it in context: Reading errors · Every mistake has a code, a place and a hint