Opened 5 years ago

Closed 5 years ago

#5622 closed defect (fixed)

Editor issue on not keeping changes

Reported by: dr.christian.kral@… Owned by: Adeel Asghar
Priority: high Milestone: 1.14.0
Component: OMEdit Version: v1.14.0-dev-nightly
Keywords: Cc:

Description

Create the package Types:

package Types
  type A = Real[3];
  type B = Real[4];
  type C = Real[5];
end Types;

Save the package as Types.mo.

Double click on Types.B in the Libraries Browser and change the line to:

type B = Real;

Now double click on Types and you read:

package Types
  type A = Real[3];
  type B = Real[4];
  type C = Real[5];
end Types;

So it seems the change was not applied. Double click on Types.B ad the editor shows again:

type B = Real;

This is strange behavior.

Attachments (2)

B.png (3.4 KB ) - added by Christian Kral <dr.christian.kral@…> 5 years ago.
Change of type B
Types.png (11.7 KB ) - added by Christian Kral <dr.christian.kral@…> 5 years ago.
After changing B and then switching to Types

Download all attachments as: .zip

Change History (9)

comment:1 by dr.christian.kral@…, 5 years ago

Tested in OMEdit

Connected to OpenModelica 1.14.0~dev-26680-gc8a5546
Connected to OMSimulator unknown-linux

comment:2 by Adeel Asghar, 5 years ago

I can't reproduce this.

comment:3 by Christian Kral <dr.christian.kral@…>, 5 years ago

I tested it again after freshly starting OMEdit and I can still reproduce it. It may be a Linux issue...

by Christian Kral <dr.christian.kral@…>, 5 years ago

Attachment: B.png added

Change of type B

by Christian Kral <dr.christian.kral@…>, 5 years ago

Attachment: Types.png added

After changing B and then switching to Types

comment:4 by Christian Kral <dr.christian.kral@…>, 5 years ago

When I double click on Types.B and Types, OMEdit shows the two attached pictures B.png an Types.png.

comment:5 by Christian Kral <dr.christian.kral@…>, 5 years ago

If I press CRLS+S between these steps, Type B is updated correctly each time.

comment:6 by Christian Kral <dr.christian.kral@…>, 5 years ago

CTRL+S

comment:7 by Adeel Asghar, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.