osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
39 stars 8 forks source link

Duplicate Element 'mils_example' in PublicPackageSection 'Test_Package' example.aadl #132

Closed hoheinzollern closed 11 years ago

hoheinzollern commented 11 years ago

Hi everyone, I'm getting started with AADL, installed OSATE in Eclipse Juno with XText 2.2.1. The installation process went smoothly, but when I start writing code I keep getting this error:

Duplicate Element 'mils_example' in PublicPackageSection 'Test_Package'  example.aadl   /TestGeneric    line: 3 /TestGeneric/example.aadl   Xtext Check (fast)

even with a simple aadl file like this:

package Test_Package
public
    system mils_example
    end mils_example;
end Test_Package;

...and even with the standard property set (with Create/update Predeclared and Annex Properties). Is there something that I'm not aware of to get it working?

My complete eclipse configuration details are here: https://gist.github.com/4223830

juli1 commented 11 years ago

Hello,

This error is due to a bug with Juno. We are currently working on this issue but it requires some time to be solved. In the meantime, please try with Eclipse Indigo, you should not experience this error. Regards,

hoheinzollern commented 11 years ago

Hi Julien, thanks for the hint. Unfortunately I also tried with Eclipse Indigo and was unable to have a working environment. The setup went smoothly (I followed the "Update Site Instructions" from the wiki: https://wiki.sei.cmu.edu/aadl/index.php/Getting_Osate_2_binaries), but when I create a new project, after the wizard, I get this message:

Errors occurred during the build.
Error instantiating builder 'org.eclipse.xtext.ui.shared.xtextBuilder'.
Plug-in org.eclipse.xtext.ui.shared was unable to load class org.eclipse.xtext.ui.shared.internal.ExecutableExtensionFactory.
An error occurred while automatically activating bundle org.eclipse.xtext.ui.shared (513).
Plug-in org.eclipse.xtext.ui.shared was unable to load class org.eclipse.xtext.ui.shared.internal.ExecutableExtensionFactory.
An error occurred while automatically activating bundle org.eclipse.xtext.ui.shared (513).

When I create a new file and try to open it I get this exception: https://gist.github.com/4232075#file_message

And again here's my configuration for Indigo: https://gist.github.com/4232075#file_eclipse_conf

Thanks for the support!

hoheinzollern commented 11 years ago

I finally found what didn't work with Eclipse Indigo: it was because you have to install the whole Xtext 2.2.1 package, and not just Xtext Runtime as is explained in the guide. Could you please add information on the wiki about the incompatibilities with Juno and remove this phrase: "- you only need Xtext 2.2.1 Runtime listed at the bottom of the list."

Thanks! Best regards, Alessandro

juli1 commented 11 years ago

Hi Allessandro,

I do not need to see what is going wrong - you seem to fix all the bugs by yourself ! :-) Anyway, we will update the wiki for sure. Also, if you want to contribute to the wiki, we also invite you to contribute and add all the information you will need relevant for installing or using OSATE2.

Greetings,

hoheinzollern commented 11 years ago

Sure, I have no problems if you give me access to it :)

juli1 commented 11 years ago

Hello,

You should have received a notification for account creation so that you can add required information. I close the bug for now, please let me know if you want to reopen it later.

Regards