Closed chipbite closed 10 months ago
You're going to need to attach a ZIP file with that full directory structure if you'd like some assistance I'm afraid.
I put the link to the attached zip file on top now for easy access. Here is the link as well: https://github.com/structurizr/cli/files/12144612/workspace.zip
Also made some clarifications in the report.
This is the error that I get from using the ZIP file at https://github.com/structurizr/cli/files/12144612/workspace.zip
./structurizr.sh export -w ./workspace.dsl -f plantuml -o c4export
Exporting workspace from ./workspace.dsl
- loading workspace from DSL
com.structurizr.dsl.StructurizrDslParserException: Unexpected tokens (expected: enterprise, group, person, softwareSystem, deploymentEnvironment, element, ->) at line 1 of /Users/simon/Downloads/workspace/./model/softwaresystem/spam/model/container/core.dsl: container core "Core" { at line 6 of /Users/simon/Downloads/workspace/./model/container.dsl: !include softwaresystem/spam/model at line 3 of /Users/simon/Downloads/workspace/./workspace.dsl: !include model
at com.structurizr.dsl.StructurizrDslParser.parse(StructurizrDslParser.java:912)
at com.structurizr.dsl.StructurizrDslParser.parse(StructurizrDslParser.java:128)
at com.structurizr.cli.export.ExportCommand.run(ExportCommand.java:131)
at com.structurizr.cli.StructurizrCliApplication.run(StructurizrCliApplication.java:81)
at com.structurizr.cli.StructurizrCliApplication.main(StructurizrCliApplication.java:119)
This error is caused by some files being included multiple times, which I don't believe is what you're seeing. I think you're still seeing https://github.com/structurizr/dsl/issues/308 and perhaps hidden files are treated differently between Windows and Mac (I don't have access to a Windows VM for a few days unfortunately).
Description
Hi! This is from a discussion on this topic. Link to attached zip file.
Originally posted by @simonbrowndotje in https://github.com/structurizr/cli/discussions/136#discussioncomment-7395281
Steps to reproduce
Please find the excellent simplified test folder / DSL workspace structure (
workspace.zip
) from @okamiraner, here: https://github.com/structurizr/cli/discussions/136#discussioncomment-6527761. Here is also a direct link to workspace.zip. Unzipworkspace.zip
to get the folder structure, and open a shell there.structurizr export -w workspace.dsl -f plantuml -o c4export
Expected: Includes are successfully parsed and included Actual: Exception thrown, see below:
Screenshot
FYR, the folder structure (of the attached zip file,
workspace.zip
) is:Code sample
Here is some of the code (contained in the files in
workspace.zip
), that show how the test/sample workspace is set up, with includes:workspace.dsl
Here are includes, one for model and one for views folders.
model/container.dsl
model/person.dsl
Configuration
This was tested on windows (10). Tested on two shells, using windows cmd shell & powershell - w same results.
Structurizr version nrs.
Severity
Minor
Priority
Medium
Resolution
I have no budget and there's no rush, please fix this for free
More information
Maybe this issue belongs in the DSL project instead. Sorry for that, if so.