esteinberg / plantuml4idea

Intellij IDEA plugin for PlantUML
Apache License 2.0
629 stars 114 forks source link

ngdiag: plugin creates an unexpected diagram #325

Closed QuaritschGerFfm closed 2 years ago

QuaritschGerFfm commented 2 years ago

Hi, I am new in using PlantUML, but when I use the following plantUML Code, the IntelliJ Plugin is generating another diagram than the website: http://www.plantuml.com

@startuml
!include <office/Servers/application_server>
!include <office/Servers/database_server>
!include <logos/kubernetes>
!include <logos/prometheus>
skinparam monochrome true
skinparam BackgroundColor transparent
nwdiag {
  network net_1 {
    comp01 [description = "<$application_server> <$kubernetes> <$prometheus>\n Kubernetes Prometheus\n (federation scraper)"];
    routerFfm;
  }

  routerFfm -- inet;
  inet [shape = cloud];
  inet -- routerMuc;
  network net_2 {
    routerMuc;
    comp02 [description = "<$application_server> <$kubernetes> <$prometheus>\n Kubernetes Prometheus \n (federation endpoint)"];
  }
}
@enduml

This is what I get from the plugin: grafik

And I received that from the online generator and I expected that too: grafik

Link: Online generator

Would be nice if that would be fixed in the future. Otherwise, many thanks for the great plugin!

krasa commented 2 years ago

Are you using the newest plantuml.1.2021.12.jar?

QuaritschGerFfm commented 2 years ago

Sorry sorry, I didn't see that the jar can be configured 😔

grafik

I downloaded the new one and its fine. :-)

grafik

So it's only an issue of the plugin bundle? I didn't installed the PlantUML jar manually before the installation of the plugin.

Many thanks for your quick response!

krasa commented 2 years ago

Yes, it is bundled and configurable, and you are using a super old plugin version.