Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3] Question about debugging templates(Question about debug features available in Acceleo 3)
[Acceleo 3] Question about debugging templates [message #557523] Tue, 07 September 2010 19:48 Go to next message
Eclipse UserFriend
Hey Obeo folks,

In past versions of Acceleo when we had runtime errors in our templates, the template editor would highlight in red the problem code. I'm just wondering if this feature is available in Acceleo 3? I didn't see it at all while debugging my code. If not, will the feature be added in the future? Without this it is much harder to find out which lines in the templates are causing problems.

Thanks for your help!

Tom G
Re: [Acceleo 3] Question about debugging templates [message #557659 is a reply to message #557523] Wed, 08 September 2010 09:00 Go to previous messageGo to next message
Eclipse UserFriend
Hi Tom,

In Acceleo 3.0, we notify the user with marker for any error during the parsing (if you forget to close a block for example). Parsing problems are visible in the editor. We will also have warnings and informations (TODO / FIXME) in Acceleo 3.1 (example). And during the generation, we also notify the user if something goes wrong, this time in the console.

Do you have a specific kind of error that was detected in Acceleo 2, that is not detected in Acceleo 3 ?

Stephane Begaudeau, Obeo
Re: [Acceleo 3] Question about debugging templates [message #557668 is a reply to message #557659] Wed, 08 September 2010 09:17 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040505060702060204090601
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Tom,

To complete, we do not intend on reporting "runtime" errors in the
template editor itself for Acceleo 3. The console and error log display
stack traces corresponding to "in which module did the failure happen,
an on which line". We consider these stack trace to be more powerful
than a simple red marker in the editor, as it allows you to trace
exactly from which templates the call leading to a failure came.

Laurent Goubet
Obeo

Stephane Begaudeau wrote:
> Hi Tom,
>
> In Acceleo 3.0, we notify the user with marker for any error during the
> parsing (if you forget to close a block for example). Parsing problems
> are visible in the editor. We will also have warnings and informations
> (TODO / FIXME) in Acceleo 3.1
> ( http://sbegaudeau.tumblr.com/post/961722949/user-interface-i mprovements-in-acceleo-3-1).
> And during the generation, we also notify the user if something goes
> wrong, this time in the console.
>
> Do you have a specific kind of error that was detected in Acceleo 2,
> that is not detected in Acceleo 3 ?
>
> Stephane Begaudeau, Obeo


--------------040505060702060204090601
Content-Type: text/x-vcard; charset=utf-8;
name="laurent_goubet.vcf"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="laurent_goubet.vcf"

YmVnaW46dmNhcmQNCmZuOkxhdXJlbnQgR291YmV0DQpuOkdvdWJldDtMYXVy ZW50DQpvcmc6
PGEgaHJlZj0iaHR0cDovL3d3dy5vYmVvLmZyIj5PYmVvPC9hPg0KZW1haWw7 aW50ZXJuZXQ6
bGF1cmVudC5nb3ViZXRAb2Jlby5mcg0KdXJsOmh0dHA6Ly93d3cub2Jlby5m cg0KdmVyc2lv
bjoyLjENCmVuZDp2Y2FyZA0KDQo=
--------------040505060702060204090601--
Re: [Acceleo 3] Question about debugging templates [message #557718 is a reply to message #557659] Wed, 08 September 2010 11:20 Go to previous message
Eclipse UserFriend
I'm not sure yet. Most of my Acceleo 3 errors were java exceptions. I'm not sure if I've seen any Acceleo generated error messages during generation.
Previous Topic:[Acceleo 3] Calling service on list
Next Topic:[Acceleo 3] ownedElement + filter + reject : unexpected behavior
Goto Forum:
  


Current Time: Fri Apr 25 13:11:06 EDT 2025

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

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

Back to the top