Skip to content

The compact diagnostic traceback sometimes adds ellipses in weird places #8339

Open

Description

@MDLC01

Not a great issue name, feel free to suggest a better one.

Consider the following example:

#let foo = panic
#{
  (1, 2, 3)
    .map(foo)
}

With the compact diagnostic tracebacks introduced in #8000, this results in the following error message:

error: panicked with: 1
  ┌─ main.typ:1:11
  │
1 │ #let foo = panic
  │            ^^^^^

  while calling `map` at main.typ:3:2
    (1, 2, 3)…)

Notice how the ellipsis is followed by a parenthesis the opening counterpart of which is not shown in the error message.

This is suboptimal and somewhat confusing. In particular, note that I formatted the code in a way that is quite common, meaning users will likely encounter this case.

Activity

  1. added
    diagnostics
    on May 24, 2026
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

    diagnostics

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions