Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#3260 closed defect (fixed)

OMEdit has issues when saving single-file packages

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: high Milestone: 1.9.3
Component: OMEdit Version: trunk
Keywords: Cc:

Description (last modified by massimo ceraolo)

Consider the attached TestSave package. It contains just two models, named RLC and RLD.
A way to male a different copy of it, to work with, I think, is to use the context command "Copy", leaving blank the path field. Let is be "TestCopy"
Once this is done one can see the full code of the copied package, but does not see the "+" sign on the package icon in the Libraries Browser that normally indicates that it contains models.
So, the only way to gain access to models seems to be through the text view.

The worst things occur when one wants to save this copied package on disk.
I did: Save, then Unload, then Load TestCopy
What I got is an empty package: i.e. the two models RLC and RLD are not there!

I made my tests on r24813.

Sorry, attached files "TestSave.mo" and "TestSave2.mo" are wrong but I don't know how to delete them!

Attachments (4)

TestSave.mo (22.0 KB ) - added by massimo ceraolo 10 years ago.
TestCopy.mo (114 bytes ) - added by massimo ceraolo 10 years ago.
TestSave.2.mo (22.0 KB ) - added by massimo ceraolo 10 years ago.
TestSave.3.mo (4.3 KB ) - added by massimo ceraolo 10 years ago.

Download all attachments as: .zip

Change History (7)

by massimo ceraolo, 10 years ago

Attachment: TestSave.mo added

by massimo ceraolo, 10 years ago

Attachment: TestCopy.mo added

by massimo ceraolo, 10 years ago

Attachment: TestSave.2.mo added

by massimo ceraolo, 10 years ago

Attachment: TestSave.3.mo added

comment:1 by massimo ceraolo, 10 years ago

Description: modified (diff)

comment:2 by Adeel Asghar, 10 years ago

Resolution: fixed
Status: newclosed

Fixed in r25388.

comment:3 by massimo ceraolo, 10 years ago

I checked with r25401: It works nicely!
Thank you.

Note: See TracTickets for help on using tickets.