hashicorp / vscode-terraform

HashiCorp Terraform VSCode extension
https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform
Mozilla Public License 2.0
922 stars 179 forks source link

Terraform intellisense is not showing when using module with github as the source #1744

Closed brizaldi closed 5 months ago

brizaldi commented 5 months ago

Extension Version

v2.30.0

VS Code Version

Version: 1.88.1 (system setup) Commit: e170252f762678dec6ca2cc69aba1570769a5d39 Date: 2024-04-10T17:41:02.734Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631

Operating System

Windows 11 23H2 Build 22631.3447

Terraform Version

Terraform v1.8.0 on linux_amd64

Steps to Reproduce

  1. Create a module with github as it's source, for example:
    module "main_eks_asg" {
    source = "git::git@github.com:myaccount/terraform-modules.git//eks?ref=v1.0.0"
    ...
    }
  2. Trigger the intellisense by using CTRL+Space (On Windows)

Expected Behavior

Actual Behavior

Terraform Configuration

No response

Project Structure

Main project:


.
└── dev
    ├── main.tf
    ├── terraform.tfvars
    └── variables.tf

Modules:

.
└── eks
    ├── data.tf
    ├── locals.tf
    ├── main.tf
    ├── outputs.tf
    ├── variables.tf
    └── versions.tf

Gist

No response

Anything Else?

No response

Workarounds

No response

References

No response

Help Wanted

Community Note

dbanck commented 5 months ago

Thanks for the report @brizaldi!

I believe https://github.com/hashicorp/vscode-terraform/issues/1440 already covers this, so I'm going to close this as a duplicate to keep the conversation in one place.

github-actions[bot] commented 4 months ago

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.