Skip to content
Advertisement

I am getting a syntex error when making a UML class in IntelliJ, how can i fix it?

I am making a UML class diagram in IntelliJ with the “Sketch it!” plugin, but it says there is a syntax error in line 5, where it says namespace the first time. I don’t get why, as it says the same on many times below as well without an error. I can’t find a tutorial to this program online, so I’m having trouble fixing it.

JavaScript

Advertisement

Answer

The definition is incompatible with PlantUML syntax, with all these namespace {..} without naming the namespace and these {} after introducing each class

Placing the two first classes in a dedicated namespace but not the next :

JavaScript

produces :

enter image description here

Note your diagram is not easy to read because containing a lot of classes, and some of them are orphan.

The footer indicates this is generated by SketchIt, I do not know it, perhaps that tool needs to have all classes defined in a namespace rather than out of a namespace ?

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement