| [Acceleo 3] Protected section ERROR ? [message #647618] |
Fri, 07 January 2011 06:56  |
Alexandre Cortier Messages: 9 Registered: January 2011 |
Junior Member |
|
|
Hello,
I work on a UML to C generator. When I test my templates (from Acceleo run-configuration and Eclipse runtime configuration), protected sections are lost.
A file myFile.lost is generated but corresponding sections are empty.
Is this error already known ?
Thanks,
|
|
|
| Re: [Acceleo 3] Protected section ERROR ? [message #647740 is a reply to message #647618] |
Sat, 08 January 2011 09:02   |
Stephane Begaudeau Messages: 370 Registered: April 2010 Location: Nantes (France) |
Senior Member |

|
|
Hi Alexandre,
Protected areas must have a unique identifier in a given file. If two protected areas are sharing the same ID we can't put the data where it belongs. So I think that you have:
1- two protected areas with the same name
or
2- a protected area with a name that has been changed with the generation
I create a protected area named "12"
[protected ('12')]3
[/protected]
But when generated, it will create a protected area named "123":
start of user code 123
end of user code
But given the fact that you've lost some data, I would go for the first possibility.
Stephane Begaudeau, Obeo.
[Updated on: Mon, 10 January 2011 03:22] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02572 seconds