-
Notifications
You must be signed in to change notification settings - Fork 135
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
Various errors with kakoune + kak-ls #129
Comments
@paultyng this issue also exists on neovim |
👋 @michaelssingh Generally speaking, as I mentioned in #84 (comment) the language server currently isn't very useful without schema - the only thing it can really do without it is formatting. That is why it's currently treated as a requirement and it is communicated as such per #84 That said as we expand the functionality it will become more useful without the schema - e.g. completion of It's hard to tell however if this is related to your issue without seeing the server log, especially the beginning of it, where server receives Thanks. |
I've included a link to the gist with the logs. What exactly is the schema and how do I get it? |
@michaelssingh Unfortunately this is log from the client side, can you please follow the guide I linked above and provide the server-side log? https://github.com/hashicorp/terraform-ls/blob/master/docs/TROUBLESHOOTING.md Thanks. The schema will be obtained automatically by the language server, as long as you ran |
I thought that these were logs from the language server. |
Indeed - I'm sorry for missing that part of the log! It looks like this is the main culprit:
which seems like the same problem we discussed recently in #128 (comment) Do you mind me closing this issue and continue the conversation there? That thread also mentions a workaround. |
As discussed, the main culprit here seems to have been the schema, which is something we are addressing on multiple fronts, most recently @appilon raised #302 which preloads schema at least for the official providers (latest as of build time). Feel free to subscribe to #193 which discusses what might be a more scalable and sustainable solution for this problem, along with hashicorp/terraform#24261 Aside from that though I struggled to get Kakoune set up with the PR is welcomed https://github.com/hashicorp/terraform-ls/blob/master/docs/USAGE.md to describe a functional kakoune setup. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Server Version
Terraform Version
Client Version
Terraform Configuration Files
Log Output
https://gist.github.com/michaelssingh/7c26c8f4c98680a61f1e4fbcc5e6783e
Expected Behavior
Completions should work
Actual Behavior
Errors in Kakoune such as:
terraform language server error: 'finding HCL block failed: no block found at hcl.Pos ...
terraform language server error: 'finding completion items failed: no schema available
`
Steps to Reproduce
/.config/kak/kakrc
&&~/.config/kak-lsp/kak-lsp.toml
&&
kak
and type aroundThe text was updated successfully, but these errors were encountered: