[X] Ensure you have latest version of plugin installed
[X] Search for possible issue duplicates
Installation details
[X] IDE version: Build #IU-192.6262.58, built on August 20, 2019
[X] intellij-hcl plugin version: 0.7.5
[X] Terraform version: Terraform v0.12.7
Terraform Configuration Files
provider "random" {
version = "~> 2.2"
}
resource "random_string" "rnd" {
length = 1
result = "NOPE"
}
Expected Behavior
The completion dialog should understand that some properties (such as random_string.result) are computed and thus should not offer it for assignment in that context, and ideally would not tolerate it appearing in a block even if the user copy-pasted it there
Failing to offer it for assignment would be a huge win, detecting it after the fact would be a nice-to-have
Actual Behavior
Error: "result": this field cannot be set
on foo.tf line 5, in resource "random_string" "rnd":
5: resource "random_string" "rnd" {
Steps to Reproduce
Type the name of a computed property inside a resource block
Invoke completion
Observe the computed property is offered for completion
Prerequisites
Installation details
Build #IU-192.6262.58, built on August 20, 2019
0.7.5
Terraform v0.12.7
Terraform Configuration Files
Expected Behavior
The completion dialog should understand that some properties (such as
random_string.result
) are computed and thus should not offer it for assignment in that context, and ideally would not tolerate it appearing in a block even if the user copy-pasted it thereFailing to offer it for assignment would be a huge win, detecting it after the fact would be a nice-to-have
Actual Behavior
Steps to Reproduce