#6288 closed defect (fixed)
Problem with replaceable record
Reported by: | casella | Owned by: | adrpo |
---|---|---|---|
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)
Change History (5)
Changed 3 years ago by casella
comment:1 Changed 3 years ago by casella
- Cc ahaumer@… added
comment:2 Changed 3 years ago by adrpo
comment:3 Changed 3 years ago by adrpo
- Milestone changed from 1.17.0 to 1.16.2
- Resolution set to fixed
- Status changed from new to closed
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 Changed 3 years ago by casella
Ported to master in PR 7057
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.