Skip to content

Windows version writes inconsistent line-endings #6736

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

Closed
mklhmnn opened this issue Sep 17, 2017 · 11 comments
Closed

Windows version writes inconsistent line-endings #6736

mklhmnn opened this issue Sep 17, 2017 · 11 comments
Labels
Component: IDE The Arduino IDE IDE 1.9.x Beta Related to the Arduino IDE Beta Build Type: Bug

Comments

@mklhmnn
Copy link

mklhmnn commented Sep 17, 2017

I'm using Windows 10 and the Arduino IDEA 1.8.4. While my project's .h file is written with 0x0A (\n) line-endings, the last line contains a 0x0D 0x0A. This causes some other tools to reject this file because of inconsistent line-endings.

@cmaglie
Copy link
Member

cmaglie commented Sep 18, 2017

May you provide a way step-by-step to reproduce the error?

@per1234
Copy link
Collaborator

per1234 commented Sep 18, 2017

The IDE actually does this to all files it creates, not only .h.

Steps to reproduce:

  • Save a sketch using the Arduino IDE
  • Open the sketch in a program that shows line endings (I'm using Notepad++).

clipboard01

@mklhmnn
Copy link
Author

mklhmnn commented Oct 14, 2017

I still can reproduce this bug with the 1.9.0 beta version.

@facchinm facchinm added the IDE 1.9.x Beta Related to the Arduino IDE Beta Build label Oct 16, 2017
facchinm added a commit that referenced this issue Oct 16, 2017
@facchinm
Copy link
Member

Hi @mklhmnn ,
I just pushed a proposed fix in 1.9 branch (c96cdd7) the build should be ready in a couple of minutes.
Would you mind testing if it solves your problem? The correct build number will be PR-beta1.9-BUILD-11.
Thanks!

facchinm added a commit that referenced this issue Oct 16, 2017
facchinm added a commit to facchinm/Arduino that referenced this issue Oct 18, 2017
@mklhmnn
Copy link
Author

mklhmnn commented Oct 20, 2017

I've tried the download from https://www.arduino.cc/download.php?f=/arduino-nightly-windows.zip (the file-time is 20.10.2017 14:33:36 inside the .zip file), but the bug is still there. If you meant a different build, please let me know where I can download it or how to build Arduino from sources.

@per1234
Copy link
Collaborator

per1234 commented Oct 21, 2017

@mklhmnn it's this one:
https://www.arduino.cc/download_handler.php?f=/ide_beta/arduino-1.9.0-beta-windows.zip
They have a beta build as well as an hourly (AKA "nightly") build now.

@per1234 per1234 added the Waiting for feedback More information must be provided before we can proceed label Oct 21, 2017
@mklhmnn
Copy link
Author

mklhmnn commented Oct 21, 2017

Yes, the latest beta build fixes the bug. I was expecting the hourly build be more modern than the beta build, because I assumed the beta build to be updated less often, but both coming from the beta-line.

cmaglie pushed a commit that referenced this issue Oct 23, 2017
@per1234 per1234 removed the Waiting for feedback More information must be provided before we can proceed label Oct 25, 2017
cmaglie pushed a commit that referenced this issue Oct 30, 2017
facchinm added a commit that referenced this issue Nov 10, 2017
facchinm added a commit that referenced this issue Nov 15, 2017
facchinm added a commit that referenced this issue Jan 11, 2018
facchinm added a commit to facchinm/Arduino that referenced this issue Jan 22, 2018
facchinm added a commit that referenced this issue Feb 16, 2018
@per1234
Copy link
Collaborator

per1234 commented Mar 19, 2018

@facchinm thanks for your work on this! I confirm that the problem is solved for me in Arduino 1.9.0-beta build 38, Windows 10.

So can this be closed now?

@facchinm
Copy link
Member

I'd prefer to close it when beta gets merged into master, but I know it could become very difficult to keep track of it 🙂

@per1234
Copy link
Collaborator

per1234 commented Mar 19, 2018

OK. I just ran across it today when I rediscovered this bug and thought it might have slipped through the cracks. I didn't realize this was the policy.

If this beta branch system is something that will continue to be used in the future then I think it would be worth adding a new label, something like Fixed in Beta. If the beta branch is only a temporary system that will be discontinued after the merge then it's sufficient to just review all issues labeled IDE 1.9.x Beta after the merge.

@facchinm
Copy link
Member

Second one 😉 The Beta was not meant to be maintained for such a long time but we still need to close some stuff before merging it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE IDE 1.9.x Beta Related to the Arduino IDE Beta Build Type: Bug
Projects
None yet
Development

No branches or pull requests

4 participants