-
Notifications
You must be signed in to change notification settings - Fork 131
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
Language server crashes on nvim #927
Comments
Hi @mosheavni The mentioned diagnostic error is just a noisy diagnostic we plan to address in #326 The following error indicates the real root cause:
Generally per LSP I'd expect clients (including the NeoVIM one) to never send the same version twice. I experienced a similar bug in Sublime Text, which has led to a successful fix: sublimelsp/LSP#1470 sublimelsp/LSP#1514 Have you tried reporting this to NeoVIM? |
If the clients sends the version twice, can't terraform-ls notice that and ignore it? |
I'm inclined to agree - it's probably the right pragmatic solution - see #310 However I would still encourage you to report this in NeoVIM, as this is clearly a bug there which should be addressed. |
Opened: |
I'm going to close this as we can continue to track the discussed server changes as part of #310 Thanks for the detailed report and for filing the issue in NeoVIM. |
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/mosheavni/c5914746d4134779c6f3cb1481e2d597
Expected Behavior
Completion wouldn't crash the server
Actual Behavior
After a few completions on the aws module, I get a diagnostic error:
and the language server doesn't work anymore:
Although the process is still live and keeps on producing:
many times after.
Steps to reproduce
minimal-init.lua
file:mkdir /tmp/tfls-crash-test/ cd /tmp/tfls-crash-test/ curl -sLO https://gist.githubusercontent.com/mosheavni/4adb8b498e369849a6d301294332fd8e/raw/5ac421a3ca0f4611980630769e046b3b60647f85/minimal_init.lua
tags
andtags_all
blocks, in about ~5 minutes the server will crash with the above mentioned error logsThe text was updated successfully, but these errors were encountered: