-
Notifications
You must be signed in to change notification settings - Fork 113
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
Waiting for shell command to finish infinite #356
Comments
Possibly related to #217 |
Well that's nice and all but one of the other problems is that I've failed to ever see a log created by kak-lsp. I have this as my
But I've yet to see any log file in I got this from
Which I'm guessing is an issue with formatting? But I don't have a log file to know definitively. And another problem is that kak-lsp is either ignoring the TOML file I'm pointing it to, and/or there's some bug where it starts a server even when the given roots specified in the |
An alternative way to get a log is to run kak-lsp using this method https://github.com/ul/kak-lsp#crashes .
This is expected, tho we perhaps want to consider changing this behaviour. |
Would you mind trying the latest master to see if it resolves your problem? I suspect that something touches file during the save and language server responds with CONTENT_MODIFIED error which hangs synchronous request. If I'm right then the latest master should fix this part. However, it also means that your file will be not formatted because language server refuses to do so. And we don't retry requests automatically for this case at the moment. |
I'm on the latest master and tried having |
Then my hypothesis was wrong =) Having logs would be really helpful to investigate the issue. Please let me know if I can help you with obtaining them. Have you tried to run kak-lsp in a separate terminal rather than as a daemon? |
I would like to give you a log file, but I've never seen one in |
My issue in #363 fixed this issue with formatting. For now, at least. EDIT: oh, well not for Nim at least.
|
Is it the entire log? If yes then it seems that Nim language server just didn't respond to the formatting request at all. |
@ul Similar to |
It's a good suggestion, PR is welcome. I know you write and like Rust ;-) |
This is based on an issue that was posted on Reddit recently on the Kakoune subreddit.
What happens is that kak-lsp starts a language server on either standalone files or a project, and upon trying to write a file Kakoune hangs on
waiting for shell command to finish
.For me, this is happening on Nim files. Specifically on a Nim file that isn't part of a project and not in a directory that has a
.nimble
file or.git
directory.Here's is my configuration for kak-lsp
Here's my configuration for Nim:
And here's why I have to use nimlsp with kak-lsp:
According to the linked Reddit post, this happens for other languages like Rust, Python, and Dart.
The text was updated successfully, but these errors were encountered: