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: casella Owned by: adeas31
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 casella 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by casella

comment:1 follow-up: Changed 7 years ago by adeas31

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

comment:2 in reply to: ↑ 1 Changed 7 years ago by casella

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 Changed 7 years ago by casella

  • Cc buchner@… added

comment:4 Changed 7 years ago by adeas31

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in 691dfe4/OMEdit.

Note: See TracTickets for help on using tickets.