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

Exception when serializing error model library which extends error model library #2512

philip-alldredge opened this issue Nov 10, 2020 · 0 comments · Fixed by #2515


Copy link

Expected and Current Behavior

When saving an AADL resource which contains an error mode library which extends another one when the text editor isn't open, an exception is thrown and logged. This prevents any changes to the error model library from being saved.

Steps to Reproduce

  1. Open a package diagram for a package which has an error model library extension. other in the example below.
  2. Make any change to the model using the diagram editor when the text editor isn't open.
  3. Exception is thrown. If the change was an error model library change, the model is not updated

A stack trace is attached but it does not uncover the root cause. The issue appears to be retrieving the IContext fails. Ultimately ErrorModelCrossReferenceSerializer.getCrossReferenceNameFromScop is called and returns null. At that point things bubble up to ultimately not find the context. I suspect that serializing this function may be the solution.

package other

	annex EMV2 {**
		error types
	extends emv2_test with
		end types;
end other;
package emv2_test

	annex EMV2 {**
		error types
		end types;
end emv2_test;

This is a blocker for #2450

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging a pull request may close this issue.

2 participants