Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6288 closed defect (fixed)

Problem with replaceable record

Reported by: Francesco Casella Owned by: Adrian Pop
Priority: blocker Milestone: 1.16.2
Component: Interactive Environment Version: 1.16.0
Keywords: Cc: ahaumer@…

Description

Steps to reproduce:

  • open the attached package
  • open Examples.DPCMCurrentControlled
  • double-click on the driveData record

The machineData menu shows "Error" instead of "redeclare DC_Drive.DriveParameters.MachineDataSets.M48V machineData".

Also, the drop-down menu shows the M48V record, but not the MachineData record.

Attachments (1)

DC_Drive.mo (10.8 KB ) - added by Francesco Casella 4 years ago.

Download all attachments as: .zip

Change History (5)

by Francesco Casella, 4 years ago

Attachment: DC_Drive.mo added

comment:1 by Francesco Casella, 4 years ago

Cc: ahaumer@… added

comment:2 by Adrian Pop, 4 years ago

I started looking into this last night using 1.17.0-dev and one of the issues is #6290.

I will now check with 1.16.1 as that one doesn't have the bad changes from #6290.
I think the problem is because the component is both a parameter (with no binding, that's why you get "Error" there, that's a bug) and replaceable.

comment:3 by Adrian Pop, 4 years ago

Milestone: 1.17.01.16.2
Resolution: fixed
Status: newclosed

Should be fixed via: https://github.com/OpenModelica/OpenModelica/pull/7056

I don't think MachineData record should be in the list as what would be the point of redeclare the component with the same class?

I will keep this ticket open until I copy the changes to master.

comment:4 by Francesco Casella, 4 years ago

Ported to master in PR 7057

Note: See TracTickets for help on using tickets.