adamiBs / vscode-terraform-live-graph

The Terraform Live Graph Extension for Visual Studio Code is a plugin that allows you to generate a live Terraform graph as you code.
https://marketplace.visualstudio.com/items?itemName=adamiBs.terraform-live-graph
MIT License
237 stars 4 forks source link

[Unexpected Error, Required plugins are not installed] Issue with plugins #26

Open jcotoBan opened 1 year ago

jcotoBan commented 1 year ago

When i try to generate the live graph i get an error about inconsistency between plugins installed on provider and packages on the dependency lock file.

Steps to reproduce the behavior:

  1. CRTL+SHIFT+P
  2. Look for Terraform Graph view and click it
  3. See error

Expected behavior Graph should be generated.

Screenshots Screen Shot 2023-03-26 at 9 06 58 AM

Versions (please complete the following information):

Additional context I am using Linode provider. https://registry.terraform.io/providers/linode/linode/latest/docs. I was using latest version, but noticed the error always mentioned version 1.29.2, so i switched to that version to see if that fixed something, but still getting the error.

I deleted all .terraform and terraform.tfstate several times and run terraform init, but it didnt work.

adamiBs commented 1 year ago

Hi thanks for filing an issue. Have you initialized the project with terraform init successfully?

jcotoBan commented 1 year ago

@adamiBs Sure. Yes, terraform init runs successfully.

elvis2 commented 1 year ago

I too had a similar issue:

Unexpected error: ╷ │ Error: Module not installed │  │  on /../modules/_tags.tf line 2: │  2: module "tags" { │  │ This module is not yet installed. Run "terraform init" to install all │ modules required by this configuration. ╵ 

The module it is complaining about has been installed. I've even written a plan to json.