-
Notifications
You must be signed in to change notification settings - Fork 181
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
Slow completion #1299
Comments
Hi @ohemelaar! Thanks for raising this with a demo project to reproduce and a video of the actual behavior. Do you mind sharing the extension log as well? It contains request times and background job information, which might help figure things out. You can also send the log to |
I just sent you the logs, although I see the times are only precise to the second. Hope it still helps |
Thank you for sending the logs, and please excuse the late response. I can reproduce this on macOS and Linux with a slow network connection. The job that pulls module information from the registry is also the culprit here. We plan to improve that job with some error caching and hope it will resolve this issue. |
We released the new extension 2.26.0 version (and 0.31.1 language server version) with a potential fix. So please try it and let us know if it solves this issue. |
It seems to be working better now, thanks! |
(using vscodium 1.78.2, HashiCorp Terraform v2.26.1 and terraform-ls 0.31.2) |
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. |
Versions
Extension
VS Codium
With VSCode too
Operating System
Terraform Version
Steps To Reproduce
Clone this project we use as template : https://gitlab.com/vigigloo/templates/terraform-project
Open the editor in
environment/namespaces.tf
for example and start typing to addExpected Behavior
The completion should quickly show the variables available in the module.
Actual Behavior
It's slow.
0001-0207.mp4
Additional context
Doesn't only happen in
locals
blocks. But doesn't happen in some modules, for example if you edit a file at the root of the repository I provided it's pretty snappy.I guess this is not quite enough data to possibly find the issue, although I hope someone can reproduce this slowness using the same repository. If you have any tips to give me of debug traces and stuff I could provide to have a better insight please let me know 🙏
The text was updated successfully, but these errors were encountered: