-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: ABAP-Cleaner uses CRLF instead of LF #177
Comments
Hi Frank, maybe a solution as in #124 is possible, where @stockbal used Inside ADT, the code is passed to ABAP cleaner with CRLF (at least on Windows), which is why I originally chose to return it that way, too: But maybe the best solution for the command line case would be to add a parameter that allows you to select whether you'd like the code to be returned with CRLF or LF – or alternatively, auto-detecting from the input code? (However, this would only work if code documents with only one line end with a line break). Kind regards, |
Hi Jörg-Michael, I don't think the git config is a solution here. If I understand Frank correctly he just zip's the local abapGit repo after it was processed via ABAP Cleaner and then uploads it into the SAP system. A custom cli option to control the line endings would be the best solution in my opinion. Regards, |
Hi Ludwig, ah, understood, thanks! So probably, since LF seems to be preferred, this command line option could be Kind regards, |
Hi Jörg-Michael, yes, the git line feed conversion should still work Kind regards, |
Hi Jörg-Michael, My workaround is, that I replace all CRLF with LF in the .ABAP-files with my source code generation tool before I zip it. Best regards |
Hi Frank and Ludwig, thanks for reporting and discussing this issue! In version 1.10.0, which was just released, the cleanup from command line now uses LF as the default, but offers the new option Kind regards, |
Hello,
I’m working on project where I generate ABAP code with Yeoman. I want to use ABAP-Cleaner command line tool to format the generated code.
The generated code will be uploaded with abapGit as ZIP-File (offline repository) into the SAP-System.
Unfortunately adds the ABAP-Cleaner at the end of each line a CRLF instead of a LF. The coding cannot be deserialized with this.
I’m getting the following error in abapGit.
You can see it in the debugging of the method ZCL_ABAPGIT_OBJECT_CLAS->DESERIALIZE_ABAP variable LT_SOURCE.
I created a test class with the SE80 for demonstration. I exported it as ZIP file (original.zip) with the abapGit and applied the ABAP-Cleaner on it (cleaned.zip).
cleaned.zip
original.zip
Can you please change the CRLF to LF?
Best regards
Frank
The text was updated successfully, but these errors were encountered: