QuantumLeaps / qm

Graphical modeling and code generation tool based on UML state machines
https://www.state-machine.com/products/qm
Other
140 stars 37 forks source link

QM 6.1.0 fails to load legacy model from QM 5.2.5 #19

Closed smartinou closed 10 months ago

smartinou commented 10 months ago

I recently moved to QM 6.1.0 Linux, on Ubuntu 22.04LTS. It failed to load legacy models built with QM 5.2.5. When attempting to do this, I get a pop up error:

Screenshot from 2024-01-08 20-30-38

Luckily, I checked the release notes found here: https://www.state-machine.com/qm/history.html#qm_6_1_0 The note about the new xml element external_package caught my attention. My model has an external package (.qpm) file. I manually edited the .qm file to replace the tag: <package file="./gui.qmp"/> with... <extern_package file="./gui.qmp"/>

... and the model successfully loaded.

According to the Note section of the release notes under 6.1.0, this change should have been backward compatible, but it seems like it's not.

Links to gui.qp and gui.qpm files that reproduce the issue: https://github.com/smartinou/pfpp/tree/main/firmware/qp_ao/models

quantum-leaps commented 10 months ago

The issue has been fixed. Please download the latest QM release again. Thank you for reporting, --MMS