-
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
TFVars File Error: "E5248: Invalid character in group name" #1464
Comments
I have just commented out the terraformls lines from my lspconfig plugin and the errors editing tfvars files have gone away. I tried removing any other plugins associated with syntax highlighting - even color in general - to no avail. The only solution seems to be removing the terraformls config stanza - which is obviously not desirable. My "setup" for terraformls is not very complicated.
Is there something more that I should be doing? Can I just remove tfvars files from being parsed with the tfls? |
As a working work-around, I have modified my lspconfig to NOT attach the terraform-ls to tfvars files. I don't love this option but at least I'm not getting errors, atm.
|
Hi @jonchines, I can't to reproduce the error, sorry. Can you please share the full log when you edit a tfvars file and the error occurs? I think you can obtain the log with |
Here is the log from a newly started session. I opened into a private git repo, opened NERDtree, moved to the tfvars file, opened it, jumped to the bottom, and switched into Insert mode on a new line. You will note, and I did not know until today, that there are tons of error messages and my LspLog is millions of lines long...mostly related to terraformls.
|
The attached log does not contain any diagnostics being published (there would have to be Based on some brief GitHub search (e.g. preservim/nerdtree#1331 ) I'm going to guess that the error message you mention comes from a TreeSitter based highlighting grammar. Could this possibly come from https://github.com/MichaHoffmann/tree-sitter-hcl for example? Can you try disabling any other NeoVim plugins (other than the LSP one) that are associated with terraform files and confirm that it's still reproducible? |
This seems to be confirmed a neovim issue, see neovim/neovim#23184. |
Thanks for the link @shuan9 As far as I can tell, this is triggered by the language ID we use to describe While the convention isn't formally documented on its own (the spec does not say how words should be separated), you can see many existing multi-word IDs do use hyphens as well:
Therefore if Also, this seems to have been fixed on NeoVim side, per neovim/neovim#24714 With all that in mind I'm going to close this issue. |
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. |
Language Server Version
v0.31.5
Terraform Version
Terraform v1.5.7 on linux_amd64
Client Version
Neovim v0.9.4
Terraform Configuration
Steps to Reproduce
Expected Behavior
Edit happens without error
Actual Behavior
This text over and over - many times...
Gist
No response
Workarounds
No response
References
No response
Help Wanted
Community Note
The text was updated successfully, but these errors were encountered: