Skip to main content



      Home
Home » Eclipse Projects » Sirius » Cannot add cross reference
Cannot add cross reference [message #1742631] Tue, 06 September 2016 04:39 Go to next message
Eclipse UserFriend
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 Razz

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

Re: Cannot add cross reference [message #1742849 is a reply to message #1742631] Thu, 08 September 2016 04:42 Go to previous message
Eclipse UserFriend
Hello

Quote:
But if I try to set a message not previously loaded

I wonder how you can do that. Normally you have to add a new semantic resource to your sirius project before using the model elements contained in that resource [1]
That step will load the new resource in the resourceSet of the Sirius session and the contents of this resource will be crossreferenced by the Sirius crossReferencer.

I hope this helps.

Regards
Laurent

[1] https://www.eclipse.org/sirius/doc/user/general/Modeling%20Project.html#ProjectDependencies
Previous Topic:Provide own LayoutProvider
Next Topic:Validation inside tree and table diagram
Goto Forum:
  


Current Time: Fri Mar 28 06:23:59 EDT 2025

Powered by FUDForum. Page generated in 0.03920 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top