2025-03-19 2:39 AM - last edited on 2025-03-20 4:23 AM by Andrew Neil
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()).
2025-03-20 3:01 PM - edited 2025-03-20 3:38 PM
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.
2025-03-25 3:52 AM
Is it this moment when you realized it is a feature not a bug?
I still need it to be fixed.
2025-09-10 6:49 AM
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 :)
2025-09-10 7:03 AM
Hello,
The behavior has been escalated internally for analysis with an internal ticket number 217250 not accessible by the community users.