Errors and the value inspector

What the editor tells you, and how to see every value.

For AI tools: this page as Markdown · the whole language in one file

  • Errors say what is wrong and how to fix it, at the exact place: "clsoe" isn't a name. Did you mean close?
  • Words from other languages (input, var, hline, bgcolor, [1], &&) get a message saying what Vex uses instead.
  • Warnings catch what runs but is probably a mistake: a name never used, nothing drawn.
  • One broken line never causes errors elsewhere, and while you type the chart keeps the last version that worked.
  • The Values tab lists every named value at the bar under the cursor (hover the chart to pick a bar), and which names are empty on every bar: the usual reason a line doesn't show.
  • Press F1 on a word in the editor to open its page here.
Editor toolHow
Format code: one space around operators, none inside bracketsShift+Alt+F, or More, Format code
Rename a name everywhere (its uses, {name} in texts, your functions' inputs)F2 with the cursor on it
Version history: earlier versions kept in this browser, restore anyMore, Version history
This reference, on the word at the cursorF1

See also: Empty values, Limits