Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3718 closed defect (duplicate)

OMEdit text view editing broken

Reported by: crupp@… Owned by: adeas31
Priority: blocker Milestone: 1.9.4
Component: OMEdit Version: v1.9.4-dev-nightly
Keywords: Cc:

Description

The nightly OMEdit has some serious problems when creating models and switching between diagram view and text view that make it nearly unusable. This was introduced maybe a month ago and also affects the 1.9.4 betas.

The issue I was running into was that when defining a parameter in a block (i.e., block_class block(par=val);) and then switching to diagram view, the entire model would get duplicated from the top to the start of the equation section. I will try to make a test case for this, but in the meantime...

While investigating I found a different bug (may be related) that I can reproduce with these steps:
-In a fresh OMEdit session: duplicate the model Modelica.Blocks.Examples.PID_Controller (I called it "broken")
-Open the duplicated model
-Switch to text mode
-Edit anything, e.g., add a space at the end of a line
-Switching to diagram view returns a error saying that there are problems in the text.

I will attach the log from the OMC CLI.

Attachments (1)

omedit_log.txt (2.0 MB) - added by crupp@… 8 years ago.
Log for text view edit bug.

Change History (5)

Changed 8 years ago by crupp@…

Log for text view edit bug.

comment:1 Changed 8 years ago by adeas31

  • Resolution set to duplicate
  • Status changed from new to closed

Seems like your problem is related to #3698.
The issue is already fixed few days ago. You need to use the latest nightly build.

comment:2 Changed 8 years ago by crupp@…

Yes, you are right, sorry. I thought I had gotten the latest, but somehow I didn't get everything pulled down correctly from git.

OMEdit is working much better, however, we still had a problem after a long session where the entire model was erased. I will try to get a log to you to investigate, although it may already be obsolete with all the fixes you've been doing lately.

comment:3 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4 to 1.9.4-1.9.x

Milestone renamed

comment:4 Changed 8 years ago by sjoelund.se

  • Milestone changed from 1.9.4-1.9.x to 1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.