cancel
Showing results for 
Search instead for 
Did you mean: 

Line endings - bug in CubeMX, all versions

trzeci
Associate III

Code generated by CubeMX use Windows line-endings, which generate huge problems under other operating systems (repository, editors, etc.). You have to strip CR-LFs after every code generation.
Somebody should use standard method of platform-independent text file generation (StringBuffer and System.lineSeparator()).

13 REPLIES 13

With more positive attitude and if you won't mind calling this bug 'feature request' this may get traction ))

@STTwo-32  ??

IIRC readline() can be configured to ignore CR with ~/.inputrc or some rl_... function.

 

Is it this moment when you realized it is a feature not a bug?

I still need it to be fixed.

montea
Associate II

This is indeed VERY annoying. We have people using this on multiple machines and after every CubeMX generation we get 100 files changing just because of the line endings... Please not call this a feature :) 

mƎALLEm
ST Employee

Hello,

The behavior has been escalated internally for analysis with an internal ticket number 217250 not accessible by the community users.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.