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

module.providers returns no providers when required_providers has incomplete address #906

Closed
radeksimko opened this issue May 3, 2022 · 2 comments · Fixed by #951
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@radeksimko
Copy link
Member

Terraform Configuration Files

terraform {
  required_providers {
    name = {
      source = "hashicorp/"
    }
    aws = {
      source = "hashicorp/aws"
    }
  }
}

Log Output

2022/05/03 06:17:09 rpc_logger.go:29: Incoming request for "workspace/executeCommand" (ID 345): {"command":"terraform-ls.module.providers","arguments":["uri=file:///private/var/workspace/tf-test"]}
2022/05/03 06:17:09 rpc_logger.go:50: Response to "workspace/executeCommand" (ID 345): {"v":0,"provider_requirements":{},"installed_providers":{}}

Expected Behavior

aws provider requirement to be returned and incomplete requirement to be either ignored or somehow represented as incomplete.

Actual Behavior

No providers are returned.

Screenshot 2022-05-03 at 06 20 46

Steps to Reproduce

  1. Open an empty module and paste the configuration above into VS Code TF extension
  2. See the module provider view or check the log
@radeksimko radeksimko added the bug Something isn't working label May 3, 2022
@jpogran
Copy link
Contributor

jpogran commented May 3, 2022

I think this is fixed by removing the filter for returned providers, like I did in hashicorp/vscode-terraform#1084.

Actually on reading your output, no it's not. Just related

@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 Jul 18, 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.

2 participants