verso icon indicating copy to clipboard operation
verso copied to clipboard

Typeclass error message when a footnote is missing

Open robsimmons opened this issue 3 months ago • 0 comments

Missing footnote references should lead to reasonable, Verso-document-level error messages

/--
error: failed to synthesize
  Doc.Elab.HasNote "missingfootnote" `Tests.Basic.«the canonical document object name» Doc.Genre.none

Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
-/
#guard_msgs in
#docs (.none) errMsgForMissingFootnote "Footnote" :=
:::::::
Here's something that needs context[^missingfootnote]!
:::::::

/--
error: failed to synthesize
  Doc.Elab.HasLink "missinglink" `Tests.Basic.«the canonical document object name»

Hint: Additional diagnostic information may be available using the `set_option diagnostics true` command.
-/
#guard_msgs in
#docs (.none) errMsgForMissingLink "Footnote" :=
:::::::
Here's something that needs [context][missinglink]!
:::::::

robsimmons avatar Oct 13 '25 18:10 robsimmons