Cannot add cross reference [message #1742631] |
Tue, 06 September 2016 04:39  |
Eclipse User |
|
|
|
Hello,
I am currently creating a Sirius editor for a model containing cross references. To keep it short, my model contains several algorithm definitions, whose contains inputs and outputs, and each one of them contain a message, which is an other model.
Opening the editor is not a problem: the model itself is well loaded, and the cross references too. I can also change the messages on the in/outputs for messages that were loaded at the opening of the diagram.
But if I try to set a message not previously loaded, I am unable to save the editor, and get this error:
An internal error occurred during: "Saving Models for project representations.aird".
No EObjectDescription could be found in Scope*cross ref*
Semantic Object: *cross ref*
The stacktrace can be found at the end of the message.
And I am now struggling with it... The cross reference is correctly loaded (no proxy to resolve, no wrong path), and I tried using different ResourceSet to load the resource, but I keep getting this error. Currently, to load the resource, I get the ResourceSet of a message that was correctly loaded, load the resource with it, and set it using a EStructuralFeature: am I missing something?
Is the way Sirius import resources at the Diagram opening different from the way they are imported during edition?
Thank you for your help, and don't mind asking for more details if you feel like helping me
Greeting,
Vincent
!MESSAGE An internal error occurred during: "Saving Models and Representations for project representations.aird".
!STACK 0
java.lang.RuntimeException: No EObjectDescription could be found in Scope Output.target for Protobuf.elements[3]->Message'ArsClustListInterface'
Semantic Object: Model.algoDef[3]->AlgoDef.algo->Algo'matrix2'.output[0]->Output'matrix2'
at org.eclipse.xtext.serializer.diagnostic.ISerializationDiagnostic$ExceptionThrowingAcceptor.accept(ISerializationDiagnostic.java:77)
at org.eclipse.xtext.serializer.tokens.CrossReferenceSerializer.getCrossReferenceNameFromScope(CrossReferenceSerializer.java:131)
at org.eclipse.xtext.serializer.tokens.CrossReferenceSerializer.serializeCrossRef(CrossReferenceSerializer.java:104)
at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.getToken(SequenceFeeder.java:454)
at org.eclipse.xtext.serializer.acceptor.SequenceFeeder.accept(SequenceFeeder.java:220)
at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.accept(BacktrackingSemanticSequencer.java:408)
at org.eclipse.xtext.serializer.sequencer.BacktrackingSemanticSequencer.createSequence(BacktrackingSemanticSequencer.java:454)
[Updated on: Tue, 06 September 2016 07:27] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03920 seconds