#5704 closed defect (fixed)
OMEdit does not show wires after you try to connect a component itself
| Reported by: | Andrea Bartolini | Owned by: | Adeel Asghar |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.14.0 |
| Component: | OMEdit | Version: | v1.14.0-dev.beta2 |
| Keywords: | Cc: | Francesco Casella |
Description
Steps to reproduce the issue:
1) Load and save the following model:
model Test
Modelica.Blocks.Continuous.FirstOrder firstOrder annotation(
Placement(visible = true, transformation(origin = {20, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Sources.RealExpression realExpression annotation(
Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
end Test;
2) switch to diagram view and try to connect the output of the realExpression itself, the error is shown (see attached screenshot.png)
3) close the error pop-up and try to connect the output of the realExpression to the input of the firstOrder, the wire is not shown...
4) switch to the text view, the connection has been made
model Test
Modelica.Blocks.Continuous.FirstOrder firstOrder annotation(
Placement(visible = true, transformation(origin = {20, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Blocks.Sources.RealExpression realExpression annotation(
Placement(visible = true, transformation(origin = {-40, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(realExpression.y, firstOrder.u) annotation(
Line(points = {{-28, 0}, {8, 0}, {8, 0}, {8, 0}}, color = {0, 0, 127}));
end Test;
5) save the model, add a blank space in the text view and save again
6) switch back to the diagram view, now the wire is shown
Maybe this is solved by closure of the ticket #5691, but I cannot verify because the fix of #5691 in not yet available on the 1.14.0 beta repository
OMEdit - OpenModelica Connection Editor
Connected to OpenModelica 1.14.0~dev.beta2-3-gfe9cc97
Sysop Ubuntu 18.04
Attachments (1)
Change History (4)
by , 6 years ago
| Attachment: | Screenshot.png added |
|---|
comment:1 by , 6 years ago
| Status: | new → accepted |
|---|
comment:2 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
Fixed in c5243a7/OpenModelica and ported to 1.14 and 1.15.
Test it and feel free to reopen the ticket if you still have issues.

I don't think its related to #5691. I encountered this previously as well but just at random times. Good that we have a testcase now. Your bug description is always very detailed and helpful!