model icon indicating copy to clipboard operation
model copied to clipboard

Not opening in Structurizr Lite

Open docbobo opened this issue 2 years ago • 0 comments

Just tried to generate a few workspace.json either from examples for my own code, but none of that opens in the current version of Structurizr Lite.

My first attempt produces the following error in the Structurizr UI:

Error
Cannot invoke "com.structurizr.documentation.Documentation.getSections()" because the return value of "com.structurizr.Workspace.getDocumentation()" is null

Apparently, Structurizr expects documentation section to be present. I could work around that problem by using RunDSL and manually adding documentation afterwards.

At that point, I get the following error from Strcturizr (in the log):

Warning: syntax ambiguity - badly delimited number '18u' in line 7 of /usr/local/structurizr/.structurizr/graphviz/1/SystemContext.dot splits into two tokens
Warning: syntax ambiguity - badly delimited number '18u' in line 7 of /usr/local/structurizr/.structurizr/graphviz/1/SystemContext.dot splits into two tokens
Error: /usr/local/structurizr/.structurizr/graphviz/1/SystemContext.dot: syntax error in line 7 near ','
java.io.FileNotFoundException: /usr/local/structurizr/.structurizr/graphviz/1/SystemContext.dot.svg (No such file or directory)

Line 7 is the id field of the first software system. I believe that Structurizr (or graphviz) has some issues with the format of the IDs. As it turns out, I tried to implement something like this component yesterday myself - I initially used guids for the IDs and that didn't work either. However, regular numbers did.

I am running Structurizr Lite build 3047 via the official docker image.

docbobo avatar Apr 06 '23 15:04 docbobo