You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the text view and add annotation(uses(Modelica(version="3.2.3"))); to the model.
Right-click on the model in the libraries browser and select "Convert to newer versions of used libraries".
Choose to convert to Modelica 4.0.0 (in my case 4.0.0+maint.om).
Double-click on the model in the libraries browser to open it again, since OMEdit closes the converted model for some reason.
OMEdit now won't allow saving the model, and trying to edit it will show a warning that you're changing a system library class.
Expected Behavior
The model should keep the same behaviour as before it was converted, i.e. considered to be a user model that can be modified and saved.
Also, the same thing happens if the model is saved before converting it, but in that case OMEdit automatically saves the converted model over the original model which was a bit unexpected. I think it would be better if OMEdit left it up to the user to save the converted classes, but maybe that's hard to implement.
Version and OS
OpenModelica Version: master
OS: Linux 64-bit
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
annotation(uses(Modelica(version="3.2.3")));
to the model.4.0.0+maint.om
).Expected Behavior
The model should keep the same behaviour as before it was converted, i.e. considered to be a user model that can be modified and saved.
Also, the same thing happens if the model is saved before converting it, but in that case OMEdit automatically saves the converted model over the original model which was a bit unexpected. I think it would be better if OMEdit left it up to the user to save the converted classes, but maybe that's hard to implement.
Version and OS
The text was updated successfully, but these errors were encountered: