Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Inconsistent Line Ending Style
[Acceleo] Inconsistent Line Ending Style [message #509621] Sat, 23 January 2010 17:07 Go to next message
Markus Herrmannsdoerfer is currently offline Markus Herrmannsdoerfer
Messages: 50
Registered: July 2009
Member
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 #510364 is a reply to message #509621] Wed, 27 January 2010 06:06 Go to previous messageGo to next message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1632
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000002000903060700070902
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

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
Re: [Acceleo] Inconsistent Line Ending Style [message #510984 is a reply to message #510364] Fri, 29 January 2010 12:43 Go to previous messageGo to next message
Markus Herrmannsdoerfer is currently offline Markus Herrmannsdoerfer
Messages: 50
Registered: July 2009
Member
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 12:59 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1632
Registered: July 2009
Senior Member
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
Previous Topic:[Xpand] Referenced model unaccessible
Next Topic:How to access information about the code generated?
Goto Forum:
  


Current Time: Thu Oct 23 00:01:39 GMT 2014

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

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