Bug 484151 - Doc generation should insert fields with error messages in the templates where the errors are located
Summary: Doc generation should insert fields with error messages in the templates wher...
Status: UNCONFIRMED
Alias: None
Product: Gendoc
Classification: Modeling
Component: Core (show other bugs)
Version: 0.5RC1   Edit
Hardware: PC Windows NT
: P3 enhancement
Target Milestone: 0.5.1   Edit
Assignee: Antonio Campesino CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 15:39 EST by Romain Guider CLA
Modified: 2018-02-13 04:47 EST (History)
0 users

See Also:


Attachments
example template (18.88 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-12-11 04:31 EST, Romain Guider CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Guider CLA 2015-12-10 15:39:06 EST
The doc generation reports Acceleo's error messages which provide a line number and a column number within the script but doesn't provide any information that can be used to locate the problem in the document. Indeed, errors can pop from any script. 

In a large document this situation makes gendoc hard to use. 

A nice way to circumvent this problem would be to insert fields in the templates where errors are located and with the rror messages in it. Something like 

{GENDOC_ERR "Unrecognized variable: (a)"}

This would greatly ease the correction of templates.
Comment 1 Romain Guider CLA 2015-12-11 04:31:54 EST
Created attachment 258600 [details]
example template
Comment 2 Eclipse Genie CLA 2016-04-22 12:59:15 EDT
New Gerrit change created: https://git.eclipse.org/r/71241