Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#3135 closed defect (duplicate)

OMEdit moves comments in algorithms

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: normal Milestone: never
Component: OMEdit Version: trunk
Keywords: Cc:

Description (last modified by massimo ceraolo)

If I have a line comment in OMEdit inside an algorithm, when saving the comment is moved at the end of algorithm.

If I wrote the following model, for instance:

model aa
  Real x;
algorithm
  if time > 0.5 then
  //this is a comment
    x := 2;
  else
    x := 1;
  end if;
end aa;

when saved it becomes:

model aa
  Real x;
algorithm
  if time > 0.5 then
    x := 2;
  else
    x := 1;
  end if;
  //this is a comment
end aa;

Change History (4)

comment:1 by massimo ceraolo, 10 years ago

Description: modified (diff)

comment:2 by Adrian Pop, 10 years ago

Yes, this is a long known problem. See #2905.

comment:3 by Adrian Pop, 10 years ago

Resolution: duplicate
Status: newclosed

comment:4 by Dietmar Winkler, 9 years ago

Milestone: Futurenever

Sorting away the closed as invalid, won't fix and duplicate tickets from Future.

Note: See TracTickets for help on using tickets.