jeapostrophe / racket-langserver

Other
262 stars 24 forks source link

empty line added when `format()` #82

Open haoyun opened 1 year ago

haoyun commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

beelzebielsk commented 1 year ago

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

6cdh commented 1 year ago

I think it's fixed now.