Skip to content
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

Autocompletion is slow with all 0.25 versions on Windows #775

Closed
ghost opened this issue Jan 27, 2022 · 5 comments · Fixed by #782
Closed

Autocompletion is slow with all 0.25 versions on Windows #775

ghost opened this issue Jan 27, 2022 · 5 comments · Fixed by #782
Labels
bug Something isn't working
Milestone

Comments

@ghost
Copy link

ghost commented Jan 27, 2022

Server Version

0.25.2
platform: windows/amd64
go: go1.17.5
compiler: gc

Terraform Version

Terraform v1.1.4
on windows_amd64

Client Version

Visual Studio Code 1.63.2

Log Output

Expected Behavior

When writing terrafrom code, autcompletion si normally instant and hitting CTRL+Space drop a menu with some choices instantly.

Actual Behavior

Autocompletion not working on first try or show "Loading..." box. Same thing when hitting CTRL+Space.
When I rollback to version 0.24 of the terraform-ls, everything shows up instantly. If I go back to 0.25 (any sub release), it's slow again. I can reproduce the same behavior on 3 different PC. (Works fine on MacOS and Linux).

Steps to Reproduce

Please list the full steps required to reproduce the issue, for example:

  1. Open a folder in VSCode
  2. Create the main.tf file
  3. Start writing and wait for autocompletion.
  4. Install terraform-ls 0.24, do same thing and evertyhing is good.
@radeksimko
Copy link
Member

Hi @Daleck7
This has likely the same root cause as #768 and we're already working on a fix of that bug as part of #719

However - for some added peace of mind - would you mind sharing the log from Output -> HashiCorp Terraform?

Thanks!

@radeksimko radeksimko added bug Something isn't working waiting-response labels Jan 27, 2022
@ghost
Copy link
Author

ghost commented Jan 27, 2022

Sure, here is the output when starting with the terraform-ls 0.25.2 included in the wrapper. For logging purpose I've juste start writing a variable and a resource.
output.txt

@radeksimko
Copy link
Member

The relevant PR #782 which should address the underlying problem described here was merged and will be part of an upcoming 0.26.0 release. We plan to release 0.26.0-beta1 some time next week (which includes the mentioned patch), which will also become available as part of our VSCode preview extension.

Thank you for your patience.

@github-actions
Copy link

This functionality has been released in v0.26.0 of the language server.
If you use the official Terraform VS Code extension, it will prompt you to upgrade to this version automatically upon next launch or within the next 24 hours.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant