Skip to content

Bug: Creating a new grammar element without specifying MID when a document has ENABLE_MID: True #2379

@stanislaw

Description

@stanislaw

Describe the bug

error: could not parse file: /Users/Stanislaw/workspace/projects/strictdoc-project/strictdoc/docs/strictdoc_25_design.sdoc.
Semantic error: Grammar element 'DESIGN' is missing the MID field which contradicts to the DOCUMENT's ENABLE_MID setting.
Location: /Users/Stanislaw/workspace/projects/strictdoc-project/strictdoc/docs/strictdoc_25_design.sdoc:1:1
Hint: Either disable the ENABLE_MID option or ensure that every element has the MID field defined.

Expected behavior

Creating a grammar element in a document that has ENABLE_MID: True must result in the MID field automatically substituted and a validation must prevent removing MID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions