Opened 7 years ago

Closed 7 years ago

#4594 closed defect (fixed)

When duplicating a model saved in a single file, the duplicate model should also be saved in a single file

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: critical Milestone: 1.13.0
Component: OMEdit Version:
Keywords: Cc: buchner@…

Description

Open the attached package P in OMEdit. Expand packages P and Q in the libraries browser. Right-click M1, select duplicate and create M2. Select M2 and save it.

  • no M2.mo file is created in the P/Q/ directory
  • M2.mo is instead added inside package.mo

I think it would make more sense to replicate the behaviour of the "New Modelica Class" command, i.e., create a file P/Q/M2.mo

Attachments (1)

P.zip (1.0 KB ) - added by Francesco Casella 7 years ago.

Download all attachments as: .zip

Change History (5)

by Francesco Casella, 7 years ago

Attachment: P.zip added

comment:1 by Adeel Asghar, 7 years ago

Looks similar to #4128, #4350 and #4557.

in reply to:  1 comment:2 by Francesco Casella, 7 years ago

Replying to adeas31:

Looks similar to #4128, #4350 and #4557.

Indeed. There are also other related problems. Today I duplicated a model oldname to newname, then did some other stuff and I ended up with oldname inside newname.mo and newname inside package.mo. A real mess. I cannot reproduce this specific behaviour, but I think that if you fix the other problems this kind of things won't happen anymore.

Please fix these issues with high priority because it really makes the tool unusable for serious use.

comment:3 by Francesco Casella, 7 years ago

Cc: buchner@… added

comment:4 by Adeel Asghar, 7 years ago

Resolution: fixed
Status: newclosed

Fixed in 691dfe4/OMEdit.

Note: See TracTickets for help on using tickets.