Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializer fails on programmatically added property constant. #1972

Closed
schwerdf opened this issue Aug 23, 2019 · 0 comments · Fixed by #1973
Closed

Serializer fails on programmatically added property constant. #1972

schwerdf opened this issue Aug 23, 2019 · 0 comments · Fixed by #1973
Assignees
Milestone

Comments

@schwerdf
Copy link
Contributor

Summary

OSATE's Xtext serializer unexpectedly fails when serializing a property constant created programmatically via the object model.

Expected and Current Behavior

A plugin and AADL project reproducing this issue is checked in here.
The AADL project contains a property set Property_Constant_Add_Test, which contains one type. When the plugin is run on this property set it adds a new property constant of this type.
When trying to serialize the modified property set, the serializer fails with a ConflictingFormattingException bearing the message "Conflicting values for 'space': ' ' and ''."

Steps to Reproduce

  1. Run the plugin from https://github.com/adventiumlabs/osate-serializer-bug.
  2. Import the project Property_Constant_Add_Test and open the property set.
  3. With the cursor in the editor window for the property set, go to "Sample Menu -> Sample Command" to activate the plugin.

Environment

  • OSATE Version: 2.5.1.vfinal, installed as a plugin in vanilla Eclipse 2019-03
  • Operating System: macOS 10.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants