-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Exception when formatting ("textDocument/formatting") #126
Comments
The error might come from here: Line 276 in 3f23f43
but |
I made a change: https://github.com/6cdh/racket-langserver/tree/fix-formatting |
I've tried it and it works! |
In an older version, |
I have set up racket-langserver with neovim via nvim-lspconfig.
When I try to format code via
:lua vim.lsp.buf.format()
, the code is not formatted and a "method not found" exception can be seen in the logs.Here is the complete log (
:LspLog
):And a formatted version:
After a brief look at the relevant code, I assume that the
position-paragraph
method should be called on aracket:text%
object, but somehow anlsp-editor%
is used. I believe that there are some issues with how theindenter
passed intoindent-line!
works.However, my limited experience with Racket (as I'm still starting out) prevented me to dive deeper into how the whole thing works. Some help is greatly appreciated!
The text was updated successfully, but these errors were encountered: