Skip to content

lua-language-server inserts Windows line endings on Linux #972

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
itaranto opened this issue Mar 4, 2022 · 4 comments
Closed

lua-language-server inserts Windows line endings on Linux #972

itaranto opened this issue Mar 4, 2022 · 4 comments

Comments

@itaranto
Copy link

itaranto commented Mar 4, 2022

Describe the bug
lua-language-server inserts Windows line endings on Linux, every time I save the file.

I'm using Neovim, and every time I save a .lua file the file it gets reformatted and more over, the newlines are replaced with CRLF.

To Reproduce

recording.mp4

Expected behavior

The file should not get reformatted on save nor it shouldn't have newlines replaced with Windows' newlines.

Environment (please complete the following information):

  • OS: Arch Linux
  • Client: Neovim (Built-in LSP)

Provide logs

file_home_ignacio_.dotfiles.log
service.log

@sumneko
Copy link
Collaborator

sumneko commented Mar 4, 2022

This bug should have been fixed in 2.6.6, please try to update your version

@itaranto itaranto changed the title lua-language-server inserts Windows line-endings on Linux lua-language-server inserts Windows line endings on Linux Mar 4, 2022
@itaranto
Copy link
Author

itaranto commented Mar 4, 2022

This bug should have been fixed in 2.6.6, please try to update your version

It seems I'm using 2.6.5:

[N] ~ $ pacman -Qi lua-language-server
Name            : lua-language-server
Version         : 2.6.5-1
Description     : Lua Language Server coded by Lua
Architecture    : x86_64
URL             : https://github.com./sumneko/lua-language-server
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : bash  gcc-libs
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 6.16 MiB
Packager        : Daniel M. Capella <[email protected]>
Build Date      : Thu 17 Feb 2022 03:02:32 -03
Install Date    : Thu 17 Feb 2022 15:28:48 -03
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature

I will update to 2.6.6, thanks!

@sumneko
Copy link
Collaborator

sumneko commented Mar 4, 2022

And please read this: #960

@itaranto
Copy link
Author

itaranto commented Mar 4, 2022

And please read this: #960

Will do, thanks.

I updated to 2.6.6 and the issue is gone. Closing.

@itaranto itaranto closed this as completed Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants