[Acceleo] Problem getting Run as | Launch Acceleo [message #635879] |
Thu, 28 October 2010 09:22  |
Eclipse User |
|
|
|
Hi,
I have downloaded a eclipse amalgamation package (i.e Helios) and today I dod an online software update which worked. So I should have a current up to date Acceleo inbstallation. I am using the documentation in "Acceleo Quickstart" from here ( http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. acceleo.doc/doc/overview.html ) but no matter what I do I cannot get the Run As | Launch Acceleo Application to work. The system launches, the run Configurations screen appears but the "run" button does nothing ( the documentation has a "run" button but the application has apply and revert as well ). No code is generated. I have waited for 10 minutes for something to happen but nothing does. Running it from Debug As produces the same result. The eclipse error log does not have any obvious problems .
So... does anyone have any ideas on a troubleshoooting startegy so I can get Acceleo working
|
|
|
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636044 is a reply to message #635879] |
Fri, 29 October 2010 03:03   |
Eclipse User |
|
|
|
Hi,
We tested Acceleo on Helios and I have never seen this problem. I have two theory for this one, a new bug or a mistake that can easily be made. Let's start by being pessimistic:
Does the same thing occurs if your create your run configuration from scratch ?
Menu "Run" (not Run As on your project but Run at the top of the Eclipse window) then "Run Configurations...", then right click on "Acceleo Application" and "New", and then you have to select:
1- The acceleo project
2- The java class generated by Acceleo. This Java class has been created by Acceleo because in one template of one of your modules you have a [comment @main/]. This Java class is located in the same package as your module with your main template and it should have the same name as your module.
3- your model
4- your target folder
And then you can just click run. The generation should work. If it does, then I have an idea on what append previously, but if it doesn't could you please upload a picture of your Run Configuration.
If it worked, then I think that when you selected Run As on your project, Acceleo tried to look for the Java class that launch the generation and for that a window appears with the available Java files. You may have selected another Java class and not the Java class of your main module. In such case Acceleo cannot launch the generation.
Anyway, we you hit Run, the Acceleo engine is initialized and the generation starts it should not take more than few seconds. For example, I took 10s to initialize the generation and 9s to generate 200k lines of code today for me, so no need to wait for 10min.
Stephane Begaudeau, Obeo.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05439 seconds