Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6128 closed defect (fixed)

OMEdit deletes the redeclare clause when a parameter value is changed

Reported by: Andrea Bartolini Owned by: Adeel Asghar
Priority: blocker Milestone: 1.16.0
Component: OMEdit Version: v1.16.0-dev
Keywords: Cc: Francesco Casella

Description

Steps to reproduce the issue:
1) open the attached package TestReplaceable.mo
2) open model S1, it appears as follows:

model S1
  TestReplaceable.M m(
    redeclare model RM = TestReplaceable.RM1,
    p = 5)  annotation(
    Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end S1;

3) double click to model M and change the p value (e.g. to 6), the models S1 now appears as follows:

model S1
  TestReplaceable.M m(
    p = 6)  annotation(
    Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end S1;

The redeclare clause has been deleted...

OMEdit - OpenModelica Connection Editor
Connected to OpenModelica 1.16.0~dev-640-g99a56f3
Sysop: Ubuntu 18.04

Attachments (1)

TestReplaceable.mo (605 bytes ) - added by Andrea Bartolini 4 years ago.

Download all attachments as: .zip

Change History (5)

by Andrea Bartolini, 4 years ago

Attachment: TestReplaceable.mo added

comment:1 by Adrian Pop, 4 years ago

Resolution: fixed
Status: newclosed

comment:2 by Francesco Casella, 4 years ago

Looks good.

comment:3 by Francesco Casella, 4 years ago

Milestone: 1.16.11.16.0

comment:4 by Andrea Bartolini, 4 years ago

Seems to work on Ubuntu 18.04

Note: See TracTickets for help on using tickets.