Expand description
Located formula errors, window-free: the byte span of the formula an
error is about, its message, and a “why” hint for the common cases (a
misspelled name, the wrong number of arguments, a ( left open, an
aggregation without OVER). The formula editors underline the span and
show the message and the hint under the row.
Structs§
- Diagnostic
- An error located in a formula’s text.
Functions§
- arity 🔒
"PMT takes …, got 2 argument(s)": the function and the count given.- arity_
hint 🔒 - What is off about calling
dwithnarguments. - call_
name 🔒 - The span of the last
name(call starting before bytebefore. - closest 🔒
- Up to three of
namesnearestwordby edit distance (ignoring case), within a third of its length (at least 2), nearest first. - compile_
error - A compile (type or dimension) error for
text, which has no position: underline the first function or measure the message names that also appears in the text. - did_
you_ 🔒mean - ident_
char 🔒 - in_
string 🔒 - Whether byte
ioftextis inside a"string". - mentioned_
span 🔒 - The span in
textof the first function or measuremessagenames: a measure by its exact name, a function by its upper-case name (as messages print it) written as a call. Earliest in the message wins. - occurrences 🔒
- Every whole-word occurrence of
nameintextoutside strings (ignoring ASCII case whennocase). - parse_
error - Locate
err(from parsingtext) and add a hint where one helps. - token_
at - The token starting at byte
pos: a'quoted name', a word, or one character. At or past the end, the last character. - unclosed_
paren 🔒 - Byte offset of the innermost
(left open at the end oftext; parentheses in strings and quoted names do not count. - unknown_
category 🔒 - unknown_
measure 🔒