Skip to content

Add warnings and hints to the error reporting #600

Closed

Description

@Marmare314

Because a lot of non-programmers use typst, giving helpful hints and warnings is even more important than in programming languages.
Some examples

#let x, y = (1, 2) // hint: did you mean to use destructuring syntax (x, y)?
#set text(font: "non-existing font") // warning: font could not be loaded
**test** // warning: no content inside bold

Related: #391.

Activity

  1. added
    feature request
    diagnostics
    on Apr 6, 2023
  2. reknih commented on Jun 26, 2023

    @reknih
    Member

    Another one for hints could be cannot reference equation without numbering

  3. laurmaedje commented on Jun 26, 2023

    @laurmaedje
    Member

    Hints were implemented here, for reference: #1486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    diagnosticsfeature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions