Skip to content

Segfault on recursive glob with a filter #2709

@volodymyrprokopyuk

Description

@volodymyrprokopyuk

d2 --version is 0.7.1

Given this diagram

vars: {
  d2-config: {
    layout-engine: dagre
    # layout-engine: elk
    pad: 0
  }
}

a: {
  b: {
    c
  }
}

While this glob works

*: {
  style: {
    border-radius: 5
  }
}

This recursive glob gives the error: "style" needs a value. Is this the expected behavior?

**: {
  style: {
    border-radius: 5
  }
}

While this recursive globs crashes with a segmentation fault.

**: {
  &style: {
    border-radius: 5
  }
}

Which of the last two recursive globs is the recommended and idiomatic approach to draw rounded corners on all nested nodes?

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