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
39 stars 22 forks source link

Validation fails to find service corresponding to an EOperation #437

Open flatombe opened 3 years ago

flatombe commented 3 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

The validation fails to find the service corresponding to an EOperation.

A work-around consists in forcing a cast right before calling the EOperation.

Minimal reproduction of the problem with instructions

Anywhere in one of the M2Doc templates for Capella's IFE model, add the following template: {m:template myTemplate(myModelElement : modellingcore::ModelElement)} {m: myModelElement.getLabel()} {m:endtemplate} The validation fails with: <--- Couldn't find the 'getLabel(EClassifierLiteral=ModelElement)' service on the second line.

The workaround is to have the second line force the cast: {m: myModelElement->filter(modellingcore::ModelElement).getLabel()}

Environment


M2Doc version: 3.2.0.202105181517
Eclipse version: Capella 1.4.1.202006301603
Platform version:  Windows 10

Others:

flatombe commented 3 years ago

Could this be the same issue as #425 ?