Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Problem getting Run as | Launch Acceleo(problem getting Acceleo to generate Jave file)
[Acceleo] Problem getting Run as | Launch Acceleo [message #635879] Thu, 28 October 2010 13:22 Go to next message
Daniel is currently offline DanielFriend
Messages: 5
Registered: October 2010
Location: London,UK
Junior Member
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 07:03 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

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.
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636065 is a reply to message #635879] Fri, 29 October 2010 08:48 Go to previous messageGo to next message
Daniel is currently offline DanielFriend
Messages: 5
Registered: October 2010
Location: London,UK
Junior Member
Stephane,
These problems are normally "user error" or "user misunderstanding".

I have done as you asked and theresult is the same. I have created a PDF of the screen dumps etc but I cannot find out how to attach the file to the message. The help says ".... brose at bottom of page..." but I do no have a browse at the bottom of the page

Daniel
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636090 is a reply to message #636065] Fri, 29 October 2010 09:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7677
Registered: July 2009
Senior Member
Hi Daniel

If you're using Windows, it is well worth learning to use

C:\Program Files\HTML Help Workshop\flash.exe

which allows you to cut and paste and clip screen shots.

You can then just paste the screen shot into an HTML mail posting.

Regards

Ed Willink



On 29/10/2010 09:48, daniel.doran@ofgem.gov.uk wrote:
> Stephane,
> These problems are normally "user error" or "user misunderstanding".
>
> I have done as you asked and theresult is the same. I have created a
> PDF of the screen dumps etc but I cannot find out how to attach the
> file to the message. The help says ".... brose at bottom of page..."
> but I do no have a browse at the bottom of the page
>
> Daniel
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636176 is a reply to message #635879] Fri, 29 October 2010 14:31 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

You can upload a screenshot on this site for example an then copy here the link: http://uppix.net/ or http://imageshack.us/

Does the problem appears if you create a new project from scratch and if you create a very simple ecore model with one class for example ? (with a package name, a uri, and a prefix).

Does the problem appears with one of our example ? (file -> new -> example)

Stephane Begaudeau, Obeo
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636469 is a reply to message #636176] Mon, 01 November 2010 13:51 Go to previous messageGo to next message
Daniel is currently offline DanielFriend
Messages: 5
Registered: October 2010
Location: London,UK
Junior Member
Hi,
Here are the URL's of the various images
http://img401.imageshack.us/img401/6281/acceleo0.png
http://img840.imageshack.us/img840/245/acceleo1.png
http://img207.imageshack.us/img207/6295/acceleo2.png
http://img716.imageshack.us/img716/6767/acceleo3.png
http://img829.imageshack.us/img829/7900/acceleo4.png
http://img810.imageshack.us/img810/2582/acceleo5.png

I created a project from an example as per. "Installing an Example Acceleo Project" fro mthe Acceleo USer Guide

( http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. acceleo.doc/doc/overview.html)

and the result was the same


Daniel
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636633 is a reply to message #636469] Tue, 02 November 2010 09:56 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1902
Registered: July 2009
Senior Member
Hi Daniel,

Your generation modules (mtl files) are taking their types from the Ecore metamodel (the "http://........../2002/Ecore" part of your modules' signatures), yet you feed them an "UML" model for the generation.

Your template would generate a file for an "EClass" in the source model, yet your UML model can't have any EClass : it will have "Class"es instead.

You can either change your sample module to take its type from the UML metamodel instead of Ecore, or change the sample model you feed the generation to be an ecore model instead of an UML model.

Laurent Goubet
Obeo
Re: [Acceleo] Problem getting Run as | Launch Acceleo [message #636860 is a reply to message #636633] Wed, 03 November 2010 07:46 Go to previous message
Daniel is currently offline DanielFriend
Messages: 5
Registered: October 2010
Location: London,UK
Junior Member
Laurent,
Thnaks very much. I changed the generation model to use the UML metamodel and it all works. Thanks.

Daniel
Previous Topic:[Acceleo 3] write all the imports of a class
Next Topic:[Acceleo] UML 2 Java - Non basic types + Magicdraw
Goto Forum:
  


Current Time: Sat Oct 12 09:54:47 GMT 2024

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

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

Back to the top