Error when generate doc [message #1746303] |
Wed, 26 October 2016 15:45  |
Eclipse User |
|
|
|
Hello,
I am trying generate a doc from a xmi model. This xmi comes from an ecore metamodel. I have created a simple sample but it doesn't work. When I generate I obtain the error: "The execution of a script failed: Error during generation of Gendoc script :No file has been generated after template execution"
My document generator (test.docx) contains:
<config>
<output path='D:/testgendoc/generatedDoc.docx'/>
</config>
<context model='D:/testgendoc/System.xmi'/>
<gendoc>
[self.name/]
</gendoc>
I have following steps in Gendoc_v0.5_tutorial and I have installed the last releases available (GenDoc 0.6.0)
I think the model is correctly load because for instance if I modify the script and put [self.nameWrong/] , it detects an error of coherence "The execution of a script failed: Error during generation of Gendoc script :Unrecognized variable: (nameWrong)"
When I generate I obtain the output 'generatedDoc.docx' but its contents is:
--- ERROR DURING GENERATION OF THIS PART Error message: Error during generation of Gendoc script :No file has been generated after template execution. --- <gendoc>
[self.name/]
</gendoc> --- END ERROR ---gendoc>
Any idea?
Regards,
[Updated on: Wed, 26 October 2016 16:23] by Moderator Report message to a moderator
|
|
|
|
Re: Error when generate doc [message #1746307 is a reply to message #1746306] |
Wed, 26 October 2016 16:22   |
Eclipse User |
|
|
|
log info doesn't contribute nothing, look:
!ENTRY org.eclipse.gendoc.services 4 4 2016-10-26 17:22:58.368
!MESSAGE The execution of a script failed: Error during generation of Gendoc script :No file has been generated after template execution.
!ENTRY org.eclipse.gendoc.services 4 4 2016-10-26 17:25:38.025
!MESSAGE The execution of a script failed: Error during generation of Gendoc script :No file has been generated after template execution.
!ENTRY org.eclipse.gendoc.services 4 4 2016-10-26 17:33:29.844
!MESSAGE The execution of a script failed: Error during generation of Gendoc script :No file has been generated after template execution.
!ENTRY org.eclipse.gendoc.services 4 4 2016-10-26 17:41:07.608
!MESSAGE The execution of a script failed: Error during generation of Gendoc script :Unrecognized variable: (nameWrong)
!ENTRY org.eclipse.gendoc.services 4 4 2016-10-26 17:55:36.002
!MESSAGE The execution of a script failed: Error during generation of Gendoc script :No file has been generated after template execution.
|
|
|
|
|
|
|
Re: Error when generate doc [message #1754884 is a reply to message #1754870] |
Thu, 23 February 2017 13:59   |
Eclipse User |
|
|
|
Hello, I don't think the Interpreter is able to give that information from model.
Generally when I want to get metamodel information I create an ecore file (file >new > Eclipse Modeling Framework > Ecore Model)
Once the model is created I do right click > Load resource > Browse Registered Packages .... and I select the ecore i want to analyze. This ecore is displayed at the root of the tree editor
|
|
|
Re: Error when generate doc [message #1755109 is a reply to message #1754884] |
Tue, 28 February 2017 08:37   |
Eclipse User |
|
|
|
Hi David,
I normally used the acceleo Interpreter for defining the queries in the templates. If you browse your model and selected the element in the model, the interpreter editor provides contextual information and autocomplete functionality.
I think is find the EMF package through the EObject instance selected in the EMF editor. It may not be what you are looking after but it quite handy.
|
|
|
Re: Error when generate doc [message #1756045 is a reply to message #1755109] |
Fri, 10 March 2017 11:17   |
Eclipse User |
|
|
|
Thank you the contributions. I use the acceleo Interpreter for defining the queries in the templates too.
On the other hand, I have detected GenDoc is unstable because if I modify my script (it is correct) I obtain the error message "The execution of a script failed: Error during generation of Gendoc script :No file has been generated after template execution", but curiously if I reset eclipse and execute the generation documentation works fine.
My framework configuration is an eclipse Neon.1a Release (4.6.1) package Eclipse Modeling Framework with Acceleo 3.6.5, Xpand 2.2.0, MWE 1.3.20,
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04581 seconds