-
Notifications
You must be signed in to change notification settings - Fork 132
Code actions not working at all in Helix and unreliably in Neovim #645
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
Comments
you may miss-readed the original description of #490 about the case in neovim. |
@Shane-XB-Qian I did see #490 was talking about using |
i meant your those statement perhaps was not from this bashls, but null-ls. |
I believe this is an issue with Helix. Here I'm demoing a very stable code actions feature using the script in #490 (comment) to show case code actions and some diagnostics that has code actions, but where the severity is low so it doesn't show up in the "problems" view (i.e. As for the example you provide, here is the output from vscode: Let me know if you find more hunches that this is caused by bash-language-server. |
It is definitely caused by bash language server as:
I don't think Helix is at fault, it works with every other language server I have used out of the box. In Helix the logs say
Here are the full Helix logs in case it helps:
I really hope you can get it working! :) |
@David-Else I finally found time to spin up helix and debug what was going on. It seems like a great editor! And I found a fix and released it as version 4.6.1. Let me know if it works for you and other feature suggestion is more than welcome as new GitHub issues. |
@skovhus Brilliant, it works! Thanks :) Yes, Helix is fantastic. |
Code actions are sometimes (seems random) working in Neovim, but not in Helix.
Neovim seems to have no special default settings making it different from default Helix:
https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#bashls
https://github.com/helix-editor/helix/blob/63dcaae1b9083396fb3faaef9eaa2421f7e48fb9/languages.toml#L537
The following code (sometimes) generates code actions in Neovim 0.8 using the built-in LSP and the
ShellCheck
binary in the system path:But in Helix is just says
no code actions available
when going to the diagnostic error.The code action lightbulb https://github.com/kosayoda/nvim-lightbulb only comes on sometimes in Neovim indicating there is something buggy going on in bash-language server. Also I see another issue with code actions that is probably related here: #490 (comment)
Thanks for this great language server!
The text was updated successfully, but these errors were encountered: