Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3634 closed defect (duplicate)

OMEdit comments disappear

Reported by: Adam Dershowitz Owned by: Adeel Asghar
Priority: critical Milestone: never
Component: OMEdit Version:
Keywords: Cc:

Description

If I try to add comments to my models in OMEdit, they show up, and the code changes color as expected. However, as soon as I hit save, they disappear.
If I create a package, then I can add comments at the package level (including to the individual models in that package). But, if I then open a model, contained in that package, and add a comment, it disappears when I save that model.
I am using 1.9.4~dev-656 on a Mac. But, I have seen the same issue with recent versions. I tried to reproduce this on a Linux version, and it does not appear to be a problem there.

This problem occurs even with a simple package such as this:

package testpackage
  /*Put comment here*/

  model testmodel
  //comment
    Real a;
    //another comment
    annotation(Icon, Diagram);
  end testmodel;
  annotation(Icon, Diagram);
end testpackage;

If I open this in OMEdit, then click on testmodel and try to add a comment, it will disappear as soon as I hit save.
It seems that comments are not the only problem, but other code as well. At times I can type in things, then hit save, and they just disappear.

Change History (5)

comment:1 by Adam Dershowitz, 9 years ago

It does not seem to matter if I use "" or "/* */" to denote the comments. If I add a new line, and then make it a comment line, it just disappears on save.

comment:2 by massimo ceraolo, 9 years ago

"It seems that comments are not the only problem, but other code as well. At times I can type in things, then hit save, and they just disappear."
Yes! See #3624

comment:3 by Adam Dershowitz, 9 years ago

I had tried a fairly recent, but not that recent, version on Linux.
Thanks,

comment:4 by Adam Dershowitz, 9 years ago

Resolution: duplicate
Status: newclosed

comment:5 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.