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 Adrian Pop, 4 years ago

Anywhere? It should only be part of Ellipse:
https://specification.modelica.org/v3.4/Ch18.html#ellipse
Do you have an example?

comment:2 by Dietmar Winkler, 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 Dietmar Winkler, 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.

comment:4 by Francesco Casella, 4 years ago

Milestone: Future1.17.0
Priority: highblocker

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

in reply to:  4 ; comment:5 by Dietmar Winkler, 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 Adrian Pop, 4 years ago

Status: newassigned

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 Dietmar Winkler, 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 Adrian Pop, 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 (if -d=nfAPINoise is activated.

I am planning to change this to something more robust to change but it will take a while.

Version 0, edited 4 years ago by Adrian Pop (next)

comment:9 by Adrian Pop, 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.

comment:10 by Adeel Asghar, 4 years ago

AFAIK the problem is that getIconAnnotation or getDiagramAnnotation returns nothing in such cases.

in reply to:  10 comment:11 by Adrian Pop, 4 years ago

Replying to adeas31:

AFAIK the problem is that getIconAnnotation or getDiagramAnnotation returns nothing in such cases.

We need to investigate this. I'll open a new ticket.

in reply to:  5 comment:12 by Francesco Casella, 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:13 by Dietmar Winkler, 4 years ago

OK in that case 1.17.0 is fine. :-)

comment:14 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

comment:15 by Dietmar Winkler, 4 years ago

So when is 1.18.0 scheduled for?

comment:16 by Adrian Pop, 4 years ago

I have a fix for this since this ticket was opened:

https://github.com/OpenModelica/OpenModelica/pull/6739

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:17 by Dietmar Winkler, 4 years ago

So the reschedule was by mistake?

comment:18 by Adrian Pop, 4 years ago

Milestone: 1.18.01.17.0
Owner: changed from Adeel Asghar to Adrian Pop
Status: assignedaccepted

Not really. The feature freeze for 1.17 is mid November and I guess @casella didn't have too much info about this bug.

in reply to:  15 comment:19 by Francesco Casella, 4 years ago

Replying to dietmarw:

So when is 1.18.0 scheduled for?

July 2021, see the roadmap.

I changed this to 1.18.0 by mistake during a batch change related to Buildings library bugs, it should be 1.17.0, sorry about that.

comment:20 by Francesco Casella, 4 years ago

Milestone: 1.17.01.18.0

Rescheduled to 1.18.0

comment:21 by Adeel Asghar, 3 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.