Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#3718 closed defect (duplicate)

OMEdit text view editing broken

Reported by: crupp@… Owned by: Adeel Asghar
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@… 9 years ago.
Log for text view edit bug.

Change History (5)

by crupp@…, 9 years ago

Attachment: omedit_log.txt added

Log for text view edit bug.

comment:1 by Adeel Asghar, 9 years ago

Resolution: duplicate
Status: newclosed

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 by crupp@…, 9 years ago

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 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:4 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.