Menu

Errors and warnings

skemo lint and every render report problems with the file, the line, the column, a caret under the culprit and, often, a hint.

error[unknown-target]: unknown target `b`
  ┌─ diagram.skemo:2:6
  │
2 │   to(b) go
  │      ^
  = help: did you mean `a`?

Errors stop the rendering (exit code 1). Warnings never do, unless --deny-warnings is given. Codes are stable: you can rely on them in scripts. Messages follow the system language.

Errors

CodeCause
unknown-targetto(x) names an id that does not exist
no-targetto() without a target
duplicate-idtwo cards or zones share an id
to-outside-cardan arrow that is not inside a card
nested-in-carda card or zone indented inside a card (only lines | and to are allowed)
multiple-attr-groupstwo pairs of parentheses on one tag
mixed-indenttabs and spaces in the same file
bad-numbermalformed at, size or via
bad-marker, multiple-appearmalformed animation marker (@0, @4-2, unknown effect), or two appearance markers on one element
legacy-and-markerold step= notation and an @ marker on the same element
unsafe-hrefa link with a forbidden scheme, or empty
missing-date, bad-date, end-before-starttimeline and frieze dates (including year 0)
zone-in-frise, zone-in-mindmapzones in a mode that does not support them
bad-rootmind map root that is not a card id

Warnings

CodeCause
unknown-taga tag other than the four (ignored with its content)
line-misplaced, orphan-text, ignored-childcontent in a place where it has no meaning (ignored)
bad-side, bad-joinunknown value of side, empty join, or a join name no other arrow to the same card carries (ignored)
at-ignoredat= in a mode where positions are computed
draw-on-nodethe draw effect on something other than an arrow (fade is used)
unknown-icon, icon-ignoredan icon name that does not exist, or an icon on an arrow or a line
legacy-stepold step=/fx= notation: skemo lint --fix converts it
unknown-attributediagram(engine=…), router=… or elk=…: options of the prototype, no longer read
bad-table (preview)a table row that cannot be read as written: ^^ in the first row, a row starting with ||, a separator out of place or with another number of columns, a one-cell table between lines of text (write \| for a final bar)
bad-at (preview)at= that is neither coordinates nor a compass point, or a compass point on an element that is not at the top level
docked-arrow (preview)an arrow between a docked element (at="s"…) and the rest of the drawing: not drawn
part-classa class named like a part skemo draws (.title, .label…) or .stage, the class of the whole drawing: a rule on it would style much more than this element; name classes after what they mean (.step)
empty-diagramno card, zone or line: an empty file, or a bare diagram (still rendered)
site-missing-diagram, site-missing-file (preview)skemo site: a link to a .skemo diagram, or to a file, that is not in the folder (the link is left as written; a file is not copied)

Warnings of the steps

CodeCause
step-gapa click between 1 and the last step changes nothing: @1, @2, then @9 leaves clicks 3 to 8 empty in a presentation. @2.5 between 2 and 3 is fine
no-step-after@1-3 and no step after 3: the disappearance is never seen
step-before-parent, until-after-parenta marker earlier (or an end later) than its card or zone allows: the parent's is kept
focus-outside, highlight-outsidea focus or a highlight while the element is hidden

Warnings of the drawing

CodeCause
overlaptwo pinned cards (at=) that overlap: both are named
wrap-hides-cardswith wrap, cards sit behind others and arrows go around them
mindmap-unlinkeda mind map card that the root cannot reach (placed below)
image-missing, font-missingan image icon that was not provided; a font the stylesheet asks for that is not available (Inter is used)
unknown-layout, curve-ignored, fitan unknown layout; --curve outside a mind map; the advice of diagram(fit=…)
unroutable, waypoint-unreachable, side-ignoredan arrow the router could not draw, a via point it could not reach, a side it could not use

Warnings of the stylesheets

They point at the line of the .css file.

CodeCause
css-propertya typo of a property skemo or CSS knows: colr, --lable (the message suggests the right name). Your own variables and any valid CSS are left alone
css-syntaxa { never closed, a } without {, a declaration outside a rule or without :

With --contrast, a contrast below the threshold is reported too.