Error code · a mistake in the document
dt::unknown-element
No element or definition is called that.
What the program says
dt::unknown-element
× no element or definition is called `dirtt`
╭─[example.dtile:3:13]
2 │ tile size="1x1" {
3 │ stack { dirtt }
· ──┬──
· ╰── unknown
4 │ }
╰────
help: did you mean `dirt`?
explain: https://dharmatiles.healtoletgo.com/e/unknown-element
offline: dharmatiles explain dt::unknown-element
What to do
Check the spelling; the message names the nearest element, and dharmatiles elements lists them all.
Broken, then fixed
dt::unknown-elementdharmatiles version="1.0.0"
tile size="1x1" {
stack { dirtt }
}dharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt }
}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.dtilereports them without building (it takes--system,--printerand--seedlikebuild, 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