plantcode icon indicating copy to clipboard operation
plantcode copied to clipboard

Package is an unknown type

Open GillisWerrebrouck opened this issue 4 years ago • 2 comments

When using the package keyword in a UML, plantcode throws an error.

Example: input:

@startuml
package test1 {
    class A {
        + c string
        - d string
    }
}

package test2 {
    class B {}
}

A --|> B
@enduml

output:

Error parsing input file: 
../../uml
Unknown type

This is a valid input according to plantuml but doesn't seem to be accepted by plantcode, although, when looking at the plantcode code, there seems to be support for the package keyword.

GillisWerrebrouck avatar Nov 03 '21 09:11 GillisWerrebrouck

Once this bug is resolve it could be a good enhancement to make use of this package keyword a little more than what I think it does now. As far as I understand 1 file is created even when the keyword package is being used. It would be beneficial if this CLI tool would create multiple files in a folder structure that is according to the packages in the UML. This could also be implemented with the folder keyword as supported by plantuml instead of package.

GillisWerrebrouck avatar Nov 04 '21 13:11 GillisWerrebrouck

Changing this to enhancement as support for package is missing.

bafolts avatar Nov 06 '21 00:11 bafolts