﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3718	OMEdit text view editing broken	crupp@…	Adeel Asghar	"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.
"	defect	closed	blocker	1.9.4	OMEdit	v1.9.4-dev-nightly	duplicate		
