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

Terraform Auto complete Not working #1723

Open
1 task
namithcc opened this issue Mar 27, 2024 · 6 comments
Open
1 task

Terraform Auto complete Not working #1723

namithcc opened this issue Mar 27, 2024 · 6 comments
Labels
bug Something isn't working stale waiting-response

Comments

@namithcc
Copy link

Extension Version

v2.26.1

VS Code Version

1.86

Operating System

Windows 10 Enterprise 64bit

Terraform Version

Terraform v1.7.5 on windows_amd64

Steps to Reproduce

Terraform Auto complete Not working

Expected Behavior

Extension should help for auto complete for terraform code, when we write new codes

Actual Behavior

Extension should not helping for auto complete for terraform code

Terraform Configuration

No response

Project Structure

No response

Gist

NA

Anything Else?

No

Workarounds

No

References

No response

Help Wanted

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@namithcc namithcc added the bug Something isn't working label Mar 27, 2024
@dbanck
Copy link
Member

dbanck commented Mar 27, 2024

Hi @namithcc, Thanks for raising the issue and sorry for the inconvenience!

I see you're still using v2.26.1, while v2.29.5 is the latest version of the extension. Would it be possible for you to upgrade?

Can you share the log output of the extension? You can find it in the output pane by selecting HashiCorp Terraform.
CleanShot 2024-03-27 at 11 59 28@2x

@namithcc
Copy link
Author

image

launching language server: c:\Users\nchandrasekh.vscode\extensions\hashicorp.terraform-2.30.2024042211-win32-x64\bin\terraform-ls.exe serve
Client: Stopped --> Starting
2024/04/23 13:55:56 serve_command.go:108: Starting terraform-ls 0.33.1
2024/04/23 13:55:56 service.go:106: Preparing new session ...
2024/04/23 13:55:56 langserver.go:102: Starting server (pid 11524; concurrency: 3) ...
2024/04/23 13:55:56 opts.go:215: Received request batch of size 1 (qlen=0)
2024/04/23 13:55:56 opts.go:215: Dequeued request batch of length 1 (qlen=0)
2024/04/23 13:55:56 rpc_logger.go:32: Incoming request for "initialize" (ID 0): {"processId":12532,"clientInfo":{"name":"Visual Studio Code","version":"1.88.0"},"locale":"en","rootPath":

@dbanck
Copy link
Member

dbanck commented Apr 23, 2024

Thank you for confirming that you have the latest version!

Can you provide more information about the case where completion doesn't work as expected? With a snippet of code or a screenshot, I can try to reproduce it.

@namithcc
Copy link
Author

image

when I am trying to add a resource block as in the image, i am not getting auto complete/suggestions

@dbanck
Copy link
Member

dbanck commented Apr 23, 2024

Thank you! That's weird, top-level completion should always work.

Can you share the list of your installed VS Code extensions so I can see if there are any conflicting ones? You can get the list by running code --list-extensions.

And secondly, can you please check if the .tf file has the correct language id assigned? It should say Terraform in the right corner at the bottom.

CleanShot 2024-04-23 at 17 16 31@2x

Copy link

Marking this issue as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

Thank you for understanding.

@github-actions github-actions bot added the stale label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale waiting-response
Projects
None yet
Development

No branches or pull requests

2 participants