structurizr-dsl-intellij-plugin icon indicating copy to clipboard operation
structurizr-dsl-intellij-plugin copied to clipboard

Tags for relationships are not supported

Open RedSlowpoke opened this issue 2 years ago • 3 comments

The tags for relationships broke the parsing with "CRLF expected, got 'model'" error to reproduce create any relationship like this

workspace {
    model {
        softwareSystem1 = softwareSystem "Software System 1"
        softwareSystem2 = softwareSystem "Software System 2"
    
        softwareSystem1 -> softwareSystem2 "Relationship" {
            tags test
        }
    }
}

works fine on the https://structurizr.com/dsl, but not in IDE

RedSlowpoke avatar Jul 24 '23 16:07 RedSlowpoke

Read some of your comments. If there is some rules that i should follow as “every value/tag/name should be quoted” or something similar let us know in the readme. I don’t think that it’s a problem, at least for me. Better it’s working while limiting the ways of stating the same provided by original DSL (which were possibly just an overlook).

RedSlowpoke avatar Jul 27 '23 15:07 RedSlowpoke

I've tested your example with the current version of the plugin, and it works correctly. Can you confirm that this works for you as well?

image

dirkgroot avatar Jan 10 '24 07:01 dirkgroot

Confirm that problem exists. It's about relationship, so example should be

workspace {
    model {
        softwareSystem1 = softwareSystem "Software System 1"
        softwareSystem2 = softwareSystem "Software System 2"

        relName = softwareSystem1 -> softwareSystem2 "Relationship" {
            tags test
        }
    }
}

without relName everything highlighted well. As said here https://docs.structurizr.com/dsl/identifiers#identifiers, it is possible to name relationships as well

eddurov avatar Jan 23 '24 10:01 eddurov