Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

support terraform provider schema -json output #254

Open
2 of 5 tasks
mdaniel opened this issue Sep 1, 2019 · 1 comment
Open
2 of 5 tasks

support terraform provider schema -json output #254

mdaniel opened this issue Sep 1, 2019 · 1 comment

Comments

@mdaniel
Copy link

mdaniel commented Sep 1, 2019

Prerequisites

  • Ensure you have latest version of plugin installed
  • Search for possible issue duplicates

Installation details

  • IDE version (Help->About->Copy to Clipboard)
  • intellij-hcl plugin version (Settings->Plugins)
  • Terraform version (terraform -v)

Related Links

This is related to #128, #131, hashicorp/terraform#20446 and is documented upstream as
https://www.terraform.io/docs/commands/providers/schema.html#providers-schema-representation

I saw that you commented on hashicorp/terraform#17018 so I would guess you're already aware, but I'm creating this issue for clarity, or so it can be closed WONTFIX

Expected Behavior

I would guess so long as the filenames don't clash, the plugin can distinguish its own schema files from terraform's schema files because they have differing top-level keys (yours ".schema_version", theirs "format_version"). I actually would presume that terraform's would win in the case of conflict, since it can be that a project is running with a custom build of the aws provider, for example, and would want those completion attributes and documentation over the pre-generated ones

$ terraform providers schema -json > ~/.terraform.d/metadata-repo/terraform/model/providers/local-terraform-providers.json

then the completion for the providers in use by the project would be available (subject to the IJ restart, as documented in the readme)

Actual Behavior

The custom provider attributes, data sources, and resources are not known

@gberche-orange
Copy link

gberche-orange commented May 6, 2020

Propagated onto JetBrains issue tracker at https://youtrack.jetbrains.com/issue/IDEA-240192

/CC @VladRassokhin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants