[Acceleo] Inconsistent Line Ending Style [message #509621] |
Sat, 23 January 2010 12:07  |
Eclipse User |
|
|
|
Hi,
I tried out Acceleo for the first time and was pretty happy that it
worked very smoothly. I generated some Java code with Acceleo and wanted
to check in the code into an SVN repository. However, the commit failed
due to the "Inconsistent Line Ending Style" error. Apparently, Acceleo
generates code with inconsistent line endings. I assume this is a bug?
Or am I doing something wrong? By the way, I am using Acceleo 2.8.1 on
Galileo running on Windows XP.
Cheers,
Markus
|
|
|
|
Re: [Acceleo] Inconsistent Line Ending Style [message #510984 is a reply to message #510364] |
Fri, 29 January 2010 07:43   |
Eclipse User |
|
|
|
Hi Laurent,
I do not explicitely use line endings in my templates. However, I have
used the wizard to create the project. Can it be that this wizard
imports files that have been created with another operating system?
Cheers,
Markus
Laurent Goubet schrieb:
> Hi Markus,
>
> I have never seen this error, yet it is fully possible that you end up
> with inconsistent line endings if you generate code under windows while
> explicitely using "\n" in your templates (or generating under unix with
> "\r\n" in your templates) as for "regular" line ends, Acceleo takes the
> system default while explicitely defined line ends in the templates are
> preserved.
>
> We are thinking of a way to allow users to define the line ending style
> Acceleo should use for generations (converting both explicit and
> implicit line ends along the way), but haven't made any plans for it yet.
>
> Laurent Goubet
> Obeo
>
> Markus Herrmannsdörfer wrote:
>> Hi,
>>
>> I tried out Acceleo for the first time and was pretty happy that it
>> worked very smoothly. I generated some Java code with Acceleo and
>> wanted to check in the code into an SVN repository. However, the
>> commit failed due to the "Inconsistent Line Ending Style" error.
>> Apparently, Acceleo generates code with inconsistent line endings. I
>> assume this is a bug? Or am I doing something wrong? By the way, I am
>> using Acceleo 2.8.1 on Galileo running on Windows XP.
>> Cheers,
>>
>> Markus
>
|
|
|
Re: [Acceleo] Inconsistent Line Ending Style [message #511364 is a reply to message #510984] |
Mon, 01 February 2010 07:59  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------050309020906020208060008
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
Markus,
The wizards (for now) use JET templates to initialize Acceleo projects.
I'll have to double check JET's policy for line endings, but I'll try
and fix this asap if it is where the problem lies.
Laurent Goubet
Obeo
Markus Herrmannsd
|
|
|
Powered by
FUDForum. Page generated in 0.04109 seconds