Error code · a mistake in the document
dt::header-version
The header line has no version, or one that cannot be read.
What the program says
dt::header-version
× the header line has no version
╭─[example.dtile:1:1]
1 │ dharmatiles
· ─────┬─────
· ╰── needs `version=…`
2 │ tile size="1x1" {
╰────
help: write `dharmatiles version=1` (a whole number), or quote a longer
version: `dharmatiles version="1.0"`
explain: https://shawn-vincent.github.io/dharmatiles/e/header-version
offline: dharmatiles explain dt::header-version
dt::format-0
× this tile is format 0, and this dharmatiles reads format 1
╭─[example.dtile:1:1]
1 │ dharmatiles
· ─────┬─────
· ╰── no header: format 0
2 │ tile size="1x1" {
╰────
help: release 1.0.0 (tag `v1.0.0`) carries a document to format 1 with
`dharmatiles migrate FILE`: run that release once on the file, then
use this one
explain: https://shawn-vincent.github.io/dharmatiles/e/format-0
offline: dharmatiles explain dt::format-0
What to do
Write version=1 (a number), or a quoted version such as version="1.0.0".
Broken, then fixed
dt::header-versiondharmatiles
tile size="1x1" {
stack { dirt }
}dharmatiles version="1.0.0"
tile size="1x1" {
stack { dirt }
}The rule
A document of any kind (a tile, a parts file, a printer profile, a palette) starts with one line that says which version of the language it is written in:
Read it in context: The tile document · A document starts with a header line