Skip to content
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

Wrong line endings in urls #1332

Open
CREITZ25 opened this issue Aug 14, 2023 · 3 comments
Open

Wrong line endings in urls #1332

CREITZ25 opened this issue Aug 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@CREITZ25
Copy link
Member

CREITZ25 commented Aug 14, 2023

Expected behavior

As a developer, I always want to have the same conditions for implementing new features so that so that I don't have to analyze errors that have already been analyzed several times.

Actual behavior

A new feature reads a line from a file and reacts differently due to different newline characters

Steps to reproduce (bug) / Use Case of feature request (enhancement)

Actually this happens with pip commandlet:

cd to the urls directory and start the following find command:
$ find . -type f | xargs file | grep "with no line terminators"
./git/git/security: ASCII text, with no line terminators
./pip/pip/latest/urls: ASCII text, with no line terminators

Comments/Hints:

We have to correct this files and add the correct line endings
We should implement a test worflow such as "Update CITest.yml" in repository ide-mirrors.

Affected version:

  • OS: Windows/Linux/Mac?
  • Browser: Chrome/Firefox/Safari?
@CREITZ25 CREITZ25 added the bug Something isn't working label Aug 14, 2023
@hohwille
Copy link
Member

@CREITZ25 thanks for figuring this out and reporting this issue.
Still I am a little confused from your description.

A new feature reads a line from a file and reacts differently due to different newline characters

What does really go wrong here or is the actual bug?
Also later you show that trailing newlines are missing. However, different newline characters would IMHO indicate a CRLF vs. LF issue.

We should implement a test worflow such as "Update CITest.yml" in repository ide-mirrors.

Aren't we talking about ide-urls rather than ide-mirrors?
And in case we take some action wouldn't it be smarter to update the update-urls.yml workflow to simply add any missing trailing newline?

@CREITZ25
Copy link
Member Author

@CREITZ25 thanks for figuring this out and reporting this issue. Still I am a little confused from your description.

A new feature reads a line from a file and reacts differently due to different newline characters

What does really go wrong here or is the actual bug? Also later you show that trailing newlines are missing. However, different newline characters would IMHO indicate a CRLF vs. LF issue.

We should implement a test worflow such as "Update CITest.yml" in repository ide-mirrors.

Aren't we talking about ide-urls rather than ide-mirrors? And in case we take some action wouldn't it be smarter to update the update-urls.yml workflow to simply add any missing trailing newline?

@hohwille The problem also occurred with ide-mirrors. In addition to LF and CRLF, there is also the option of not making a line break. I added that to the CITest.yml file. And we should also create such a test in ide-urls, which tests all 3 cases.
That is what I meant and of course in ide-urls repository

hohwille added a commit to devonfw/ide-urls that referenced this issue Aug 31, 2023
@hohwille
Copy link
Member

I added the missing newlines but I still have no idea what failed because of a missing newline in pip/pip/latest/urls?
IMHO nothing was broken or got fixed by this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants