-
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
Indexing seems to block completion #1124
Comments
I get the same results with Neovim 0.8.1 and terraform-ls 0.30.1. In addition, I've extended the timeout for formatting to 5000 ms and still get a timeout every time. Formatting used to work relatively well. |
Hi @lanox On the note of logs: As Martin explained already in https://discuss.hashicorp.com/t/terraform-lsp-log-going-crazy/47715/4 the While logging to stderr isn't entirely unusual in Unix world, some other language servers do not send logs by default and/or utilize the LSP method This will also require us to potentially reflect these changes in https://github.com/hashicorp/vscode-terraform to ensure that logs remain easily available in the right place. @lanox @queue-tip To find the reason behind the slowness, we'd need to take a look at your whole log. Also, if you could come up with a minimal repro case with a directory with only one There are possibly two reasons this could be happening in theory:
If you are worried about the data in the log, feel free to send them privately to |
I should add that this is happening through LunarVim which handles the LSP integration. On my own custom neovim setting, this doesn't happen. I'll open an issue with LunarVim |
@nocode99 I do not see any actual error, rather log lines prepended with The screenshot also suggests that completion is working as expected. Is there anything in particular not working as expected, or were you just referring to the verbosity of the logs? |
This comment was marked as off-topic.
This comment was marked as off-topic.
@radeksimko apologies - as I missed that. I've been doing some more troubleshooting. I was testing out LunarVim and could not figure out a way to disable those "Error" logs from generating. I went back to my own nvim and did notice that 0.28.1 performs better than 0.30.1. In a directory that calls our mono-repo module and some public modules, the logs generated in
ScreencastLogs |
Thank you for those details @nocode99 It is likely that the amount of logs is correlated with the number of modules that you have in your workspace (monorepo, as you say). The language server began to index all modules, rather than just the initialised ones in more recent versions (0.29.0) as per #724 which would explain the difference. That said, the indexing should be done on the background and should not affect the completion - so that sounds like a bug, although it is likely it's the same one as filed under #1063 I will keep this open at least until we address #1063 |
Hi @nocode99, We intend to eventually address both as part of
We are also hoping to eventually improve the performance in this area as part of #958 and also #1056 Finally we intend to address the logging issue as part of #1271 If you believe the root cause of your issues is not covered in any of these linked issues I'd encourage you to file a new one and provide some details, otherwise we appreciate the patience until we address the above issues. |
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. |
Hi
I am not sure if I am asking/reporting this as a bug or more of a question.
I have noticed that my
lsp.log
from neovim is going crazy every time I use terraformls lsp server, it literally crates 100s of line of[ERROR]
messages.I have attached image just for reference as logs contain paths which I was not comfortable to expose, but if needed I could clean it up and post it in here.
My setup is simple.
I use
nvim version:
NVIM v0.9.0-dev-1343-gbcd25b200-dirty
with mason plugin for installing LSP servers.terraform-ls version
0.29.3
platform: darwin/arm64
go: go1.19.1
compiler: gc
I have also noticed when I open the terraform files it actually takes few seconds for LSP server to start working.
I am not sure what else I can provide but if you need anything else please let me know.
Thanks
The text was updated successfully, but these errors were encountered: