Skip to content

Notes in nested groups break sequence diagrams #2750

@nsw42

Description

@nsw42

Apols if this is a duplicate - there are some similar looking tickets, such as #2725, but I've identified a minimal repro.

Seen in v0.7.1

An actor using a self message in a nested group works as expected:

shape: sequence_diagram

actor: Actor

outer group: {
  inner group: {
    actor -> actor: "Think about life"
  }
}

and an actor using a self message in a single group also works as expected.

However, a note in place of the self message reports end of JSON on play.d2lang.com, and results in weird SVG (and fails to produce a PNG) using the offline version.

shape: sequence_diagram

actor: Actor

outer group: {
  inner group: {
    actor."Think about life"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions