ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
38 stars 22 forks source link

Unexpected behaviour for isRepresentationDescriptionName() #454

Open jaspfl opened 2 years ago

jaspfl commented 2 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/

Current behavior

This is an issue following the discussion here: https://forum.mbse-capella.org/t/type-issue-when-checking-for-diagram-existence/5103/5 In short: When using isRepresentationDescriptionName() on a collection (returns Sequence[bool]), all following calls of isRepresentationDescriptionName() in a conditional expression raise a The predicate never evaluates to a boolean type ([Sequence(boolean)]) error even when they are not checking on a collection.

This was tested by using three blocks of code

Expected behavior

The third block should exhibit the same behaviour as the first block since it the code is identical.

Minimal reproduction of the problem with instructions

Example model and template provided here. ExampleProject.zip

What is the motivation / use case for changing the behavior?

Error should be consistently thrown for same code block regardless of position in document.

Environment


M2Doc version: 3.2.0
Eclipse version: 1.4.2
Platform version:  Windows 10

Others:

ylussaud commented 2 years ago

I reproduce the issue even if I'm not sure what is going wrong.