Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3635 closed defect (fixed)

New model faulty and not saved; package sometimes destroyed

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: blocker Milestone: 1.9.4
Component: OMEdit Version:
Keywords: Cc:

Description

Consider the attached package "Test0".
1) open it in OMEdit
2) right-click on "Test0" and select "new Modelica Class". Give the class name "M" and leave everything other as prompted. The model appearance in text mode appears faulty (no text).
3) save the package.

At this point the package does not contain "M", as can be verified with any text editor.

There must be a variation of this procedure that causes the entire package to be destroyed (zero-byte file). It has happened to me sometimes, but I cannot say an exact procedure to replicate this.

Tested with OpenModelica v1.9.4-dev-667-g37ad4ee

Attachments (1)

test0.mo (5.0 KB ) - added by massimo ceraolo 9 years ago.

Download all attachments as: .zip

Change History (7)

by massimo ceraolo, 9 years ago

Attachment: test0.mo added

comment:1 by Adam Dershowitz, 9 years ago

This sounds similar to, and is likely a duplicate of these tickets 3624 and 3634

comment:2 by massimo ceraolo, 9 years ago

Maybe this is a duplicate of previous tickets, but, for me, this is not sure.
In case the behaviour described in this ticket disappears when the other ones are fixed, it will be just an additional test to verify the quality of these fixes.
Otherwise, it stays there to show an additional problem.

Moreover perhaps this ticket can suggest why in certain cases (similar to one in the procedure proposed here) the .mo file is suddenly zeroed (i.e. transformed in a zero-byte file)

Last edited 9 years ago by massimo ceraolo (previous) (diff)

comment:3 by Francesco Casella, 9 years ago

Resolution: fixed
Status: newclosed

comment:4 by Martin Sjölund, 9 years ago

Fixed (duplicate of #3642)

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.