Skip to content

No completion with terraform init message #88

@mcinquin

Description

@mcinquin

Hi,

I have a particular terraform directory structure

terraform
|-- environment
     |-- test
          |-- main.tf
          |-- .terraform
     |-- valid
|-- modules
     |-- gcp
          |-- vpc
               |-- main.tf  
               |-- outputs.tf
               |-- variables.tf
     |-- local
|-- templates

If I create or edit a file in the terraform/environment/test the completion is working well but if I work in the terraform/modules, the completion doesn't work and I have the following message: google_ Did You Forgot to do terraform init? [LS].

I guess it's because he can't find the .terraform file.

How to configure the path where it can find the .terraform folder ?

Regards.

Environment

  • terraform-lsp v0.0.11-beta2
  • coc
  • vim 8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions