esteinberg / plantuml4idea

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

UnsupportedOperationException with Pseudo sprite example from plantuml documentation #296

Closed chrisbu closed 3 years ago

chrisbu commented 3 years ago

This "Pseudo sprite" example from plantuml documentation causes java.lang.UnsupportedOperationException

Documentation: https://plantuml.com/salt (in the "Pseudo sprite" section) Example from the documentation below:

@startsalt
{
 [X] checkbox|[] checkbox
 () radio | (X) radio
 This is a text|[This is my button]|This is another text
 "A field"|"Another long Field"|[A button]
 <<folder
 ............
 .XXXXX......
 .X...X......
 .XXXXXXXXXX.
 .X........X.
 .X........X.
 .X........X.
 .X........X.
 .XXXXXXXXXX.
 ............
 >>|<color:blue>other folder|<<folder>>
^Droplist^
}
@endsalt

Specifically, it's the <<folder .. <<folder>> that's causing the issue. Remove that and it's fine.

krasa commented 3 years ago

It does not work for SVG, you can switch to PNG preview.

http://www.plantuml.com/plantuml/svg/bP1DQiKW483tSueXgzTD3r22l43f2Re8o7jWeccarYawWPJQkpUf-KcM_H2Spnbrz1fP1OxACNm3olg6RM_QzuR69FSOyFA0GMbBcF1IBp7WQsyZJaCXcv6JNFtZ2vk1cVmjRIMUk3VXhn2mgB2pnkaY5TMISEJVy2KlochT3rYM7Jbj0k3ZWSdgcTscwM0RERVmFpkVShvTY5Isv2WyDMum8ZyXDvhMZeM0-tEWJsSZt-47hiRh-QT_0G00

krasa commented 3 years ago

https://forum.plantuml.net/13387/unsupportedoperationexception-sourceforge-plantuml-ugraphic

krasa commented 3 years ago

Fixed