esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
618 stars 111 forks source link

Grouping functions do not work #386

Open hubidubi opened 1 year ago

hubidubi commented 1 year ago

The provided sample code is not rendered in intellij, but rendered fine from command line. intellij version: 2023.1 planuml plugin version: 5.23.0

`@startuml sg_test

!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v15.0/dist !include AWSPuml/AWSCommon.puml !include AWSPuml/Containers/Fargate.puml !include AWSPuml/Groups/SecurityGroup.puml

SecurityGroupGroup(sg,"SG test") { Fargate(test_app, "TestApp","") }

@enduml`

sg_test_error vpc_test

krasa commented 1 year ago

Are you on mac? Related: #261

Works fine for me on Windows 10

image

hubidubi commented 1 year ago

yes, I'm on mac

krasa commented 1 year ago

could you try it from the command line with the JetBrains JRE? Like this https://github.com/esteinberg/plantuml4idea/issues/261#issuecomment-723538377

hubidubi commented 1 year ago

This command exits silently without any output and it does not generate the output png.

/Users/hubidubi/Library/Application\ Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.8109.175/IntelliJ\ IDEA.app/Contents/jbr/Contents/Home/bin/java -jar ~/Downloads/plantuml-1.2023.6.jar vpc_test.puml

hubidubi commented 1 year ago

Also, adding the following line solves the issue:

hide stereotype

krasa commented 1 year ago

This command exits silently without any output and it does not generate the output png.

Strange. Running with no arguments should show you a GUI, maybe then you would see the error....

/Users/hubidubi/Library/Application\ Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/231.8109.175/IntelliJ\ IDEA.app/Contents/jbr/Contents/Home/bin/java -jar ~/Downloads/plantuml-1.2023.6.jar

image

chkpnt commented 9 months ago

Also, adding the following line solves the issue:

hide stereotype

I can confirm this when trying to render a diagram which uses the C4 templates.