structurizr / lite

Structurizr Lite
https://docs.structurizr.com/lite
MIT License
226 stars 26 forks source link

Are image view actually supported in Strucutrizr Lite? #66

Closed baynezy closed 1 year ago

baynezy commented 1 year ago

Description

I am attempting to use an image view with Structurizr Lite.

However, it complains that there is an unexpected token.

2023-06-19 10:41:07.794 ERROR 1 --- [nio-8080-exec-1] s.l.c.w.FileSystemWorkspaceComponentImpl : com.structurizr.dsl.StructurizrDslParserException: Unexpected tokens (expected: systemLandscape, systemContext, container, component, filtered, dynamic, deployment, custom, styles, theme, themes, branding, terminology, properties) at line 22: image component1 {

Steps to reproduce

  1. Take the example from the documentation
  2. Paste that into workspace.dsl
  3. Browse to structurizr lite URL

Screenshot

No response

Code sample

workspace {

    model {
        softwareSystem "Software System" {
            container = container "Container" {
                component1 = component "Component 1"
            }
        }
    }

    views {
        properties {
            "mermaid.url" "https://mermaid.ink"
            "mermaid.format" "svg"
        }

        component container {
            include *
            autoLayout lr
        }

        image component1 {
            mermaid https://raw.githubusercontent.com/structurizr/dsl/master/docs/cookbook/image-view/component1.mmd
            title "Class diagram for Component1"
        }
    }

}


### Configuration

_No response_

### Severity

Major

### Priority

Low

### Resolution

I have no budget, please fix this for free

### More information

_No response_
simonbrowndotje commented 1 year ago

It works for me, perhaps you're using an old version of Structurizr Lite?

baynezy commented 1 year ago

@simonbrowndotje - yes. I feel pretty stupid now. That did work as expected.