#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)
Change History (5)
by , 5 years ago
| Attachment: | DC_Drive.mo added |
|---|
comment:1 by , 5 years ago
| Cc: | added |
|---|
comment:2 by , 5 years ago
comment:3 by , 5 years ago
| Milestone: | 1.17.0 → 1.16.2 |
|---|---|
| Resolution: | → fixed |
| Status: | new → 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.
Note:
See TracTickets
for help on using tickets.

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.