racket-langserver icon indicating copy to clipboard operation
racket-langserver copied to clipboard

empty line added when `format()`

Open haoyun opened this issue 3 years ago • 4 comments

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.

haoyun avatar Oct 22 '22 00:10 haoyun

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.

dannypsnl avatar Oct 22 '22 02:10 dannypsnl

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

haoyun avatar Oct 22 '22 03:10 haoyun

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

beelzebielsk avatar Nov 12 '22 05:11 beelzebielsk

I think it's fixed now.

6cdh avatar Dec 14 '22 01:12 6cdh