Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting element.url causes plantuml syntax errors in context views when using the c4 exporter on Windows #612

Closed
zhelyan opened this issue Sep 23, 2024 · 1 comment · Fixed by #614

Comments

@zhelyan
Copy link
Contributor

zhelyan commented Sep 23, 2024

an odd one

This example works:

 workspace  { 
  
    !identifiers hierarchical  
    
    model {
       properties { 
          "structurizr.groupSeparator""/"  
       }
       
        a = softwareSystem "A" {
          // url https://yahoo.com 
        }
        
        b = softwareSystem "B"
        
        softwareSystem "C" {
             -> a  
             -> b 
        }
   }   
    views {
        properties  {
            "generatr.site.nestGroups" "true" 
            "generatr.site.exporter" "c4"  
            "c4plantuml.relationshipProperties" "true"  
            "c4plantuml.elementProperties" "true"
            "c4plantuml.tags" "true"
            "c4plantuml.legend" "true"
            "c4plantuml.stereotypes" "true"  
        }
    }
}

but uncommenting url https://yahoo.com under system A leads to a plantuml error shown on the system C context page (apologies for the quality, no other way to share ... ). The error disappears if I set c4plantuml.elementProperties to false

20240923_192825

I have verified that the plantuml files generated by the site generatr tool from the above example are syntactically correct ( parsing, exporting to e.g png all worked fine).

@zhelyan zhelyan changed the title setting element.url causes plantuam syntax errors in context views when using the c4 exporter setting element.url causes plantuml syntax errors in context views when using the c4 exporter Sep 24, 2024
@zhelyan
Copy link
Contributor Author

zhelyan commented Sep 25, 2024

Turns out that the same happens if I add properties to an element.

The generated standalone png, svg and puml files render just fine but the svg embedded in the html is corrupted

@zhelyan zhelyan changed the title setting element.url causes plantuml syntax errors in context views when using the c4 exporter setting element.url causes plantuml syntax errors in context views when using the c4 exporter on Windows Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant