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

empty line added when format() #82

Open
haoyun opened this issue Oct 22, 2022 · 4 comments
Open

empty line added when format() #82

haoyun opened this issue Oct 22, 2022 · 4 comments

Comments

@haoyun
Copy link

haoyun commented Oct 22, 2022

I am not sure if this is an issue on the language server side or on the neovim side (https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/racket_langserver.lua).

I am using this language server with neovim. Everytime the code is formatted with :lua vim.lsp.buf.format() via lsp, an empty line is added to the end of the file. So if autoformat is enable on save, lots of empty lines will be appended.

I tested it does not happen in VSCode.

I've no idea how to inspect/debug the problem.

@dannypsnl
Copy link
Contributor

I’m looking into this problem since I have same stack, the weird thing is others language server has no this issue, only racket-langserver.

@haoyun
Copy link
Author

haoyun commented Oct 22, 2022

It's good to know that you can reproduce the bug. So, it's not a configuration problem on my side.

@beelzebielsk
Copy link

beelzebielsk commented Nov 12, 2022

I'm having the same problem, too. In neovim. I haven't tested it anywhere else.

@6cdh
Copy link
Contributor

6cdh commented Dec 14, 2022

I think it's fixed now.

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

4 participants