osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

Concrete Syntax Validation Error #299

Closed philip-alldredge closed 10 years ago

philip-alldredge commented 10 years ago

In my plugin, I edit the semantic model and save it which triggers Xtext validation. I recently updated OSATE2 along with other Eclipse plugins after using a version from September and I started receiving validation errors when saving aadl resources(even when I was not making changes).

An example of the error is below:

org.eclipse.xtext.validation.IConcreteSyntaxValidator$InvalidConcreteSyntaxException: These errors need to be fixed before the model can be serialized.
AadlPackage'feature_editing'.ownedPublicSection->PublicPackageSection'feature_editing_public': The feature NamedElement(PublicPackageSection).name contains non-transient values but has no corresponding assignment in rule PublicPackageSection.

The cause of the error is that Xtext is attempting to serialize the names of package sections and that is causing an error since the names are not serialized in the AADL text. Xtext will treat package section names as transient as long as eIsSet returns false for the package section name structural feature.

A patch that fixes the issue it linked below. https://gist.github.com/philip-alldredge/4cce09d9ec3acb9eded7

reteprelief commented 10 years ago

closed