Opened 4 years ago
Closed 3 years ago
#6110 closed defect (fixed)
OMEdit does not render graphical annotations if "closure" annotation is present.
Reported by: | Dietmar Winkler | Owned by: | Adrian Pop |
---|---|---|---|
Priority: | blocker | Milestone: | 1.18.0 |
Component: | OMEdit | Version: | v1.16.0-dev |
Keywords: | Cc: |
Description
If a graphical annotation contains the closure
attribute anywhere then OMEdit will not render the graphic at all. In case of an icon the whole icon is vanishing.
Change History (21)
comment:1 by , 4 years ago
comment:2 by , 4 years ago
See also https://github.com/simulatino/OpenHPL/pull/29/commits/e19e3e7ff4fca0744022ed4c1ded6fb1097abe47 for changes that needed to be done to get OMEdit displaying the icon.
comment:3 by , 4 years ago
Sorry yes inside Ellipse will stop OMEdit displaying the icon as seen in the above diff. You can use OpenHPL/Icons/BendPipe.mo as an example.
follow-up: 5 comment:4 by , 4 years ago
Milestone: | Future → 1.17.0 |
---|---|
Priority: | high → blocker |
We should get this fixed in 1.17.0.
@dietmarw, it this is critical for you, e.g. because of use in the classroom, pls. set the milestone to 1.16.1
follow-up: 12 comment:5 by , 4 years ago
Replying to casella:
@dietmarw, it this is critical for you, e.g. because of use in the classroom, pls. set the milestone to 1.16.1
That depends on when 1.17.0 is scheduled for and 1.16.1 before that.
comment:6 by , 4 years ago
Status: | new → assigned |
---|
The OMC part should be fixed in: https://github.com/OpenModelica/OpenModelica/pull/6739
Seems Modelica Spec 3.4 added this new closure
element in Ellipse.
The OMEdit part will be handled by @adeas31.
comment:7 by , 4 years ago
OK so closure is actually a feature from a "future" spec. But in case similar situations occur it would be good that OMC simply ignores unknown annotations or simply does not display the entity where this occurs. But it should not drop the display of all present graphical annotation entities. Would this be possible?
comment:8 by , 4 years ago
Unfortunately it is not possible with the current way of doing things as we are actually doing instantiation of the graphical records and if something is missing or not defined or extra, there will be an error (showed only if -d=nfAPINoise
is activated).
I am planning to change this to something more robust to change but it will take a while.
comment:9 by , 4 years ago
Wait, OMEdit should only drop the display the Ellipse in this case, everything else that can be instantiated should work fine. If not, then is some sort of bug and I need to have a look.
follow-up: 11 comment:10 by , 4 years ago
AFAIK the problem is that getIconAnnotation
or getDiagramAnnotation
returns nothing in such cases.
comment:11 by , 4 years ago
Replying to adeas31:
AFAIK the problem is that
getIconAnnotation
orgetDiagramAnnotation
returns nothing in such cases.
We need to investigate this. I'll open a new ticket.
comment:12 by , 4 years ago
Replying to dietmarw:
That depends on when 1.17.0 is scheduled for and 1.16.1 before that.
1.17.0 is scheduled for end 2020. 1.16.0 should be released anytime soon, and 1.16.1 could follow in October/November with a few critical cherry-picked fixes on top of that if necessary.
comment:14 by , 4 years ago
Milestone: | 1.17.0 → 1.18.0 |
---|
comment:16 by , 4 years ago
I have a fix for this since this ticket was opened:
but it only works properly with the new front-end and -d=nfAPI
.
I will push this fix in as we will make the NF the default in 1.17.0 omc (is already the default in OMEdit since 1.14).
So this fix will be in 1.17.
comment:18 by , 4 years ago
Milestone: | 1.18.0 → 1.17.0 |
---|---|
Owner: | changed from | to
Status: | assigned → accepted |
Not really. The feature freeze for 1.17 is mid November and I guess @casella didn't have too much info about this bug.
comment:19 by , 4 years ago
comment:21 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Anywhere? It should only be part of Ellipse:
https://specification.modelica.org/v3.4/Ch18.html#ellipse
Do you have an example?