Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] How to log or monitor inoperable plug-in?
[Acceleo] How to log or monitor inoperable plug-in? [message #1624112] Thu, 19 February 2015 15:18 Go to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Hi everyone,

I have an old Acceleo project that I would like to transform into a plug-in. The project contains a series of templates the generate Java code from UML models using a certain profile. The project runs flawlessly with Acceleo 3.5.0 (Eclipse 4.4.1) and generates the intended Java classes.

However, UI projects generated from this project do not generate any results. Using the "Launch an Eclipse application" testing feature on the UI project the plug-in seems to be correctly registered and the "Generate" context menu is shown as expected. But when it is invoked nothing happens. The progress bar shows up, but that's about it; the src-gen folder remains empty, no messages appear in the Console and the error log remains empty.

What else can I do to find out what is wrong? Are there any other ways to obtain logs from the "Launch an Eclipse application" mode? Or monitor the output of the templates?

And any ideas on what may cause a plug-in without errors to be inoperable?

Thank you.
Re: [Acceleo] How to log or monitor inoperable plug-in? [message #1624269 is a reply to message #1624112] Thu, 19 February 2015 17:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7679
Registered: July 2009
Senior Member
Hi

Problem with Acceleo in plugins seems to be an FAQ. I've never tried
myself, so I can only suggest studying other newsgroup threads.

Regards

Ed Willink


On 19/02/2015 15:18, Luís de Sousa wrote:
> Hi everyone,
>
> I have an old Acceleo project that I would like to transform into a
> plug-in. The project contains a series of templates the generate Java
> code from UML models using a certain profile. The project runs
> flawlessly with Acceleo 3.5.0 (Eclipse 4.4.1) and generates the
> intended Java classes.
>
> However, UI projects generated from this project do not generate any
> results. Using the "Launch an Eclipse application" testing feature on
> the UI project the plug-in seems to be correctly registered and the
> "Generate" context menu is shown as expected. But when it is invoked
> nothing happens. The progress bar shows up, but that's about it; the
> src-gen folder remains empty, no messages appear in the Console and
> the error log remains empty.
>
> What else can I do to find out what is wrong? Are there any other ways
> to obtain logs from the "Launch an Eclipse application" mode? Or
> monitor the output of the templates?
>
> And any ideas on what may cause a plug-in without errors to be
> inoperable?
>
> Thank you.
Re: [Acceleo] How to log or monitor inoperable plug-in? [message #1624310 is a reply to message #1624269] Thu, 19 February 2015 18:05 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Ed Willink wrote on Thu, 19 February 2015 12:26

Problem with Acceleo in plugins seems to be an FAQ.


Hi Ed. Indeed it is easy to create a plug-in that doesn't work: mess up package names, forget compiling, forget marking the original project as a singleton, forget to export packages, etc. But in these cases there are always exceptions or error messages in the Console leading you to the error. The problem is that in this case I get no feedback at all...

Thank you.
Re: [Acceleo] How to log or monitor inoperable plug-in? [message #1690580 is a reply to message #1624310] Sun, 29 March 2015 11:41 Go to previous messageGo to next message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
Short story: Acceleo is not including the .emtl files in the plug-in .jar.

I updated yesterday from Acceleo 3.5.0 to 3.5.1. This update broke things up, resurrecting the "failed to create task or type apitooling.apigeneration" bug that first appeared with Acceleo 3.3.0. Luckily, re-installing the Plug-in Development Environment solved that particular problem.

With Acceleo 3.5.1 I am now getting an error message back when I try to run this plug-in: "mail.emtl not found". And indeed the .jar generated by Acceleo does not contain any .emtl file - just as if the project was not compiled.

No solution yet, but at least there is a lead to follow now.
Re: [Acceleo] How to log or monitor inoperable plug-in? [message #1690587 is a reply to message #1690580] Sun, 29 March 2015 14:30 Go to previous message
Luís de Sousa is currently offline Luís de SousaFriend
Messages: 214
Registered: July 2009
Senior Member
This issue has already been reported as Bug 444209 and is caused by a missing build.acceleo file. Thankfully, the bug reporter also provided a workaround.

Regards.
Previous Topic:[Acceleo] Error creating plugin: failed to create task or type apitooling.apigeneration
Next Topic:[Acceleo] Easiest way to deploy a generator
Goto Forum:
  


Current Time: Sat Nov 09 01:33:50 GMT 2024

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

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

Back to the top