Vscode-terraform: null_resource trigger breaks highlighting

Created on 22 Aug 2020  ยท  4Comments  ยท  Source: hashicorp/vscode-terraform

It is not necessary to use filemd5 function, for triggers block the problem reproduces using any function (i.e. file).

resource "null_resource" "test" {
  triggers = {
    trigger = filemd5("templates/123")
  }

  provisioner "file" {
    content     = "123"
    destination = "/tmp/private_key"
  }
}

image

If I comment trigger line it works properly:
image

bug syntax

Most helpful comment

I think this is the same as #466, going to merge them together. We are currently investigating the syntax issues and plan to publish a hotfix once resolved.

All 4 comments

It seems it's related to = symbol after trigger:

image

i am seeing the same behaviour, and i think it is related to the use of functions (and or functions in functions).

image

and

image

I think this is the same as #466, going to merge them together. We are currently investigating the syntax issues and plan to publish a hotfix once resolved.

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 context necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings