opened
mclo
username_0
Force Unix-style newlines in windows 10
issue
created
florianb
username_1
Hi @username_0 -- thanks for getting in touch!

I'm sorry to hear atom-editorconfig is not working as expected.

Does the file only contain your preferred line-endings? You may face inconsistencies if you "change" the line endings through editorconfig if the given file was formatted using another line ending in first place.
comment
created
dlebedynskyi
username_2
Having same issue. editorconfig has LF. 
Atom  has line-ending-selector default package. It has - Os default. Editorconfig is completely ignored. 
you can change default to LF there. But even if you put crlf in editorconfig - LF still will be used. 
It looks like default package override editorconfig
comment
created
florianb
username_1
Hi @username_2 - thanks for getting in touch. Could you please check if the file you're editing is consistently being formatted with the line-endings you're finally want to use?
comment
created
dlebedynskyi
username_2
@username_1 it does not look like it is constantly changing. But even with  line-ending-selector default to LF, all new fles come with CRLF still.
comment
created
Clijsters
username_3
Windows 7 here and same issue.
(Only files which came already with `lf` as ending keep its default.)
comment
created
florianb
username_1
@username_2 @username_3 - Atom guesses the linendings based upon which linenendings already exist in the file and then overrides the settings of atom-editorconfig. So if there exist any non-conforming linenedings (to the editorconfig) it is normal behavior that Atom changes the line endings and it is very difficult to change that behavior.

If you can be sure, that a file already contains only desired line endings (as defined in the editorconfig) and Atom still changes the line endings - that is a bug.

I then need a copy of the file you're starting with, your editorconfig-files used in that project and a list of the activated packages.

I am really sorry that i don't have an easy answer to this issue.
comment
created
dlebedynskyi
username_2
@username_1  Thank you for explanation. 
so far I checked that a new file is created with LF as expected. I'll keep watching if I see what could this bug. But it could we not a bug at all after you explained how atom works. Thanks
comment
created
florianb
username_1
I close this issue in favor of #89 -- feel free to get in touch if there is anything you'd like to add. Thanks everybody!
comment
closed
florianb
username_1
issue