[EcoreTools] damaged .aird file? [message #1654315] |
Fri, 06 March 2015 11:35  |
Eclipse User |
|
|
|
Several times I've ran into a situation where opening the .aird file of an EMF project fails even though the .ecore, .genmodel, and other files (MANIFEST.MF, plugin.xml) don't have any problem, and are correct (no wrong dependencies, etc.) See the attached screenshot.
This is from a freshly imported project. I've tried "Repair" to no avail. There is no entry in the Error log or the Problems view related to this. It simply won't open and won't be repaired. How can this happen just by importing the project? What are the typical reasons for the diagram editor fail to open an .aird file? How can it be recovered? I've tried creating a new representation's file but it refuses to do so saying that the modelling project already has one, and I can't find anywhere the place where I can specify or change the representation file of a project. Can this be done?
Thanks
I'm on
Mac OS X Yosemite
Eclipse SDK
Version: Mars (4.5)
Build id: I20150203-1300
with
Ecore Diagram Editor (SDK) 3.0.0.201502031348 org.eclipse.emf.ecoretools.sdk.feature.group Eclipse Modeling Project
and
EMF - Eclipse Modeling Framework SDK 2.11.0.v20150123-0357 org.eclipse.emf.sdk.feature.group Eclipse Modeling Project
|
|
|
Re: [EcoreTools] damaged .aird file? [message #1654362 is a reply to message #1654315] |
Fri, 06 March 2015 12:00   |
Eclipse User |
|
|
|
Hi
Ecore Tools never used to need a *.aird file, so I think that it now has
a legacy mode that does not need one.
You could try exit Eclipse, rename the *.aird file to not *.aird, then
restart Eclipse.
Regards
Ed Willink
On 06/03/2015 16:35, Ernesto Posse wrote:
> Several times I've ran into a situation where opening the .aird file of an EMF project fails even though the .ecore, .genmodel, and other files (MANIFEST.MF, plugin.xml) don't have any problem, and are correct (no wrong dependencies, etc.) See the attached screenshot.
>
> This is from a freshly imported project. I've tried "Repair" to no avail. There is no entry in the Error log or the Problems view related to this. It simply won't open and won't be repaired. How can this happen just by importing the project? What are the typical reasons for the diagram editor fail to open an .aird file? How can it be recovered? I've tried creating a new representation's file but it refuses to do so saying that the modelling project already has one, and I can't find anywhere the place where I can specify or change the representation file of a project. Can this be done?
>
> Thanks
>
> I'm on
>
> Mac OS X Yosemite
>
> Eclipse SDK
>
> Version: Mars (4.5)
> Build id: I20150203-1300
>
> with
>
> Ecore Diagram Editor (SDK) 3.0.0.201502031348 org.eclipse.emf.ecoretools.sdk.feature.group Eclipse Modeling Project
>
> and
>
> EMF - Eclipse Modeling Framework SDK 2.11.0.v20150123-0357 org.eclipse.emf.sdk.feature.group Eclipse Modeling Project
>
>
|
|
|
Re: [EcoreTools] damaged .aird file? [message #1660825 is a reply to message #1654315] |
Mon, 09 March 2015 06:58  |
Eclipse User |
|
|
|
Hello Ernesto,
The wizard forbid you from adding a representation file if one is existing, but you can delete the current one and add a new one afterward. Note that you will have some error dialog on deletion that will warn you that your model project is invalid because it must contain a representation file. Also, during the representation file creation select "Initialization from a semantic resource" and choose your ecore model.
The Repair fonctionnality is used for migration from an older version of Sirius to the current one, which does not seem to be your case here.
I do not know what previous operation on the aird file or the environment would cause to forbid you from opening it without any exception in the Error. If you have any feedback on how you managed to have this broken aird, we are interested in order to improve the robustness of Ecore Tools.
On your screenshot, we can see that the reference to the "Viewpoint" where the Ecore diagram is specified can not be found. It is probably because your aird is broken in some way, but have you modified your installation of EcoreTools (I guess not since you said you have "Ecore Diagram Editor (SDK) 3.0.0.201502031348")?
By the way, there is a dedicated forum for EcoreTools.
Regards,
Steve
|
|
|
Powered by
FUDForum. Page generated in 0.06756 seconds