mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
530 stars 342 forks source link

PlantUML code generated with pyang causes syntax errors in PlantUML from release 1.2023.2 #861

Closed nkhancock closed 2 months ago

nkhancock commented 1 year ago

With the publication of PlantUML release 1.2023.2 some of syntax rules for UML diagrams have become more strict. Specifically, a package must be defined in the PlantUML code before defining any notes associated with that package. See PlantUML issue #1449.

This syntax change results in UML diagrams generated using the 'uml' format option of pyang and using the default UML options to cause a syntax error when input to the PlantUML diagram generator using a release greater or equal to 1.2023.2.

The specific problem results from the note containing annotations for the module which is created on line 550 in uml.py and which occurs before the package representing the module is created on line 582 in uml.py.

nkhancock commented 2 months ago

Issue was resolved in release pyang-2.6.0.