Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5393 closed defect (fixed)

OMEdit loses source code when trying to duplicate classes in single-file packages

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: blocker Milestone: 1.14.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

Steps to replicate te problem

  • start OMEdit
  • load the attached TestDuplicate.mo file
  • expand package P2 in the libraries browser
  • double-click on connector C1, so as to display its code
  • right-click on C1, select Duplicate and create a duplicate connector C2
  • the code of the whole P1 package is gone

If one avoids to save, unloads the whole package without saving, and reloads it from scratch, no damage is actually done. However, if you hit the Save button, the whole package P1 is irremediablly lost.

This is a very serious bug which should be fixed ASAP.

Attachments (1)

TestDuplicate.mo (173 bytes ) - added by Francesco Casella 6 years ago.

Download all attachments as: .zip

Change History (3)

by Francesco Casella, 6 years ago

Attachment: TestDuplicate.mo added

comment:1 by Adeel Asghar, 6 years ago

Resolution: fixed
Status: newclosed

Fixed with ed41047/OMEdit.

comment:2 by Francesco Casella, 6 years ago

Thanks Adeel!

Note: See TracTickets for help on using tickets.