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

non-literal string expression as map key breaks syntax highlighting #809

Closed
2 tasks done
tedivm opened this issue Oct 13, 2021 · 4 comments · Fixed by hashicorp/syntax#8
Closed
2 tasks done

non-literal string expression as map key breaks syntax highlighting #809

tedivm opened this issue Oct 13, 2021 · 4 comments · Fixed by hashicorp/syntax#8
Assignees
Labels
bug Something isn't working syntax
Milestone

Comments

@tedivm
Copy link

tedivm commented Oct 13, 2021

Versions

This bug is reproducible in:

  • the latest version of the extension (below)
  • the latest version of the language server (below)

Extension

v2.15.0

Language Server

2021/10/13 14:01:51 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:01:51 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:01:51 rpc_logger.go:29: Incoming notification for "textDocument/didChange": {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf","version":1100},"contentChanges":[{"range":{"start":{"line":53,"character":2},"end":{"line":53,"character":2}},"rangeLength":0,"text":"# "},{"range":{"start":{"line":52,"character":2},"end":{"line":52,"character":2}},"rangeLength":0,"text":"# "},{"range":{"start":{"line":51,"character":2},"end":{"line":51,"character":2}},"rangeLength":0,"text":"# "}]}
2021/10/13 14:01:51 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:148: executing "OpTypeParseVariables" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:200: finished "OpTypeParseVariables" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:148: executing "OpTypeLoadModuleMetadata" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:200: finished "OpTypeLoadModuleMetadata" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:148: executing "OpTypeDecodeReferenceTargets" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:01:51 module_loader.go:200: finished "OpTypeDecodeReferenceTargets" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 module_loader.go:148: executing "OpTypeDecodeReferenceOrigins" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:01:51 module_loader.go:200: finished "OpTypeDecodeReferenceOrigins" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:01:51 server.go:448: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node","diagnostics":[]}
2021/10/13 14:01:51 server.go:448: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf","diagnostics":[]}
2021/10/13 14:01:51 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:01:51 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:01:51 rpc_logger.go:29: Incoming request for "textDocument/semanticTokens/full" (ID 12602): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"}}
2021/10/13 14:01:51 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:01:51 rpc_logger.go:50: Response to "textDocument/semanticTokens/full" (ID 12602): {"data":[0,0,8,0,0,0,9,12,1,2,2,0,8,0,0,0,9,11,1,2,2,0,8,0,0,0,9,12,1,2,2,0,8,0,0,0,9,18,1,2,2,0,8,0,0,0,9,18,1,2,2,0,8,0,0,0,9,20,1,2,2,0,8,0,0,0,9,6,1,2,2,0,4,0,0,0,5,12,1,2,0,13,6,1,0,1,2,2,2,2,0,5,3,6,0,0,4,9,6,0,3,0,4,0,0,0,5,9,1,2,0,10,8,1,0,1,2,11,2,2,0,14,4,3,0,7,2,6,0,2,1,4,4,2,0,0,9,6,1,0,1,4,6,2,0,0,10,57,1,0,3,2,6,0,2,1,4,4,2,0,0,9,21,1,0,1,4,6,2,0,0,10,5,1,0,3,2,6,2,2,0,10,14,1,0,3,0,6,0,0,1,2,13,2,0,6,0,6,0,0,0,7,11,1,0,1,2,6,2,0,0,9,14,1,0,20,0,8,0,0,0,9,14,1,2,0,15,6,1,0,1,2,3,2,2,0,25,4,6,0,0,5,7,6,0,0,8,6,6,0,0,7,8,6,0,1,2,13,2,2,0,25,10,1,0,1,2,20,2,2,0,25,3,6,0,0,4,16,6,0,1,2,22,2,2,0,25,3,6,0,0,4,18,6,0,1,2,9,2,2,0,25,3,6,0,0,4,9,6,0,1,2,16,2,2,2,2,20,0,2,1,4,11,2,0,0,14,11,1,0,3,2,17,0,2,1,4,21,2,0,0,24,4,3,0,1,4,9,2,0,0,24,4,3,0,1,4,11,2,0,0,24,5,1,0,1,4,11,2,0,0,24,1,4,0,1,4,4,2,0,6,2,4,2,2,6,0,4,0,0,0,5,12,1,2,0,13,6,1,0,1,2,2,2,2,0,5,3,6,0,0,4,9,6,0,3,0,8,0,0,0,9,16,1,2,0,17,5,1,0,1,2,17,2,2,1,2,4,2,2,0,20,2,4,0,1,2,4,2,2,0,20,5,1,0,2,2,4,2,2,0,7,3,6,0,0,4,4,6,0,3,0,8,0,0,0,9,23,1,2,0,24,5,1,0,1,2,9,2,2,0,14,14,6,0,0,15,3,6,0,0,4,2,6,0,1,2,11,2,2,0,14,10,1,0,1,2,11,2,2,0,14,12,6,0,0,13,4,6,0,0,5,2,6,0]}
2021/10/13 14:01:51 server.go:248: Completed 1 requests [4.178122ms elapsed]
2021/10/13 14:01:51 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:01:51 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:01:51 rpc_logger.go:29: Incoming request for "textDocument/documentSymbol" (ID 12603): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"}}
2021/10/13 14:01:51 rpc_logger.go:50: Response to "textDocument/documentSymbol" (ID 12603): [{"name":"variable \"identifier\"","kind":5,"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":24}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":0,"character":24}}},{"name":"variable \"subnet_id\"","kind":5,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":23}},"selectionRange":{"start":{"line":2,"character":0},"end":{"line":2,"character":23}}},{"name":"variable \"cluster_id\"","kind":5,"range":{"start":{"line":4,"character":0},"end":{"line":4,"character":24}},"selectionRange":{"start":{"line":4,"character":0},"end":{"line":4,"character":24}}},{"name":"variable \"controller_count\"","kind":5,"range":{"start":{"line":6,"character":0},"end":{"line":6,"character":30}},"selectionRange":{"start":{"line":6,"character":0},"end":{"line":6,"character":30}}},{"name":"variable \"instance_profile\"","kind":5,"range":{"start":{"line":8,"character":0},"end":{"line":8,"character":30}},"selectionRange":{"start":{"line":8,"character":0},"end":{"line":8,"character":30}}},{"name":"variable \"security_group_ids\"","kind":5,"range":{"start":{"line":10,"character":0},"end":{"line":10,"character":32}},"selectionRange":{"start":{"line":10,"character":0},"end":{"line":10,"character":32}}},{"name":"variable \"tags\"","kind":5,"range":{"start":{"line":12,"character":0},"end":{"line":12,"character":18}},"selectionRange":{"start":{"line":12,"character":0},"end":{"line":12,"character":18}}},{"name":"data \"aws_subnet\" \"main\"","kind":5,"range":{"start":{"line":14,"character":0},"end":{"line":16,"character":1}},"selectionRange":{"start":{"line":14,"character":0},"end":{"line":16,"character":1}},"children":[{"name":"id","kind":14,"range":{"start":{"line":15,"character":2},"end":{"line":15,"character":20}},"selectionRange":{"start":{"line":15,"character":2},"end":{"line":15,"character":20}}}]},{"name":"data \"aws_ami\" \"ubuntu\"","kind":5,"range":{"start":{"line":18,"character":0},"end":{"line":37,"character":1}},"selectionRange":{"start":{"line":18,"character":0},"end":{"line":37,"character":1}},"children":[{"name":"most_recent","kind":17,"range":{"start":{"line":19,"character":2},"end":{"line":19,"character":20}},"selectionRange":{"start":{"line":19,"character":2},"end":{"line":19,"character":20}}},{"name":"filter","kind":5,"range":{"start":{"line":26,"character":2},"end":{"line":29,"character":3}},"selectionRange":{"start":{"line":26,"character":2},"end":{"line":29,"character":3}},"children":[{"name":"name","kind":15,"range":{"start":{"line":27,"character":4},"end":{"line":27,"character":19}},"selectionRange":{"start":{"line":27,"character":4},"end":{"line":27,"character":19}}},{"name":"values","kind":18,"range":{"start":{"line":28,"character":4},"end":{"line":28,"character":72}},"selectionRange":{"start":{"line":28,"character":4},"end":{"line":28,"character":72}},"children":[{"name":"0","kind":15,"range":{"start":{"line":28,"character":14},"end":{"line":28,"character":71}},"selectionRange":{"start":{"line":28,"character":14},"end":{"line":28,"character":71}}}]}]},{"name":"filter","kind":5,"range":{"start":{"line":31,"character":2},"end":{"line":34,"character":3}},"selectionRange":{"start":{"line":31,"character":2},"end":{"line":34,"character":3}},"children":[{"name":"name","kind":15,"range":{"start":{"line":32,"character":4},"end":{"line":32,"character":34}},"selectionRange":{"start":{"line":32,"character":4},"end":{"line":32,"character":34}}},{"name":"values","kind":18,"range":{"start":{"line":33,"character":4},"end":{"line":33,"character":20}},"selectionRange":{"start":{"line":33,"character":4},"end":{"line":33,"character":20}},"children":[{"name":"0","kind":15,"range":{"start":{"line":33,"character":14},"end":{"line":33,"character":19}},"selectionRange":{"start":{"line":33,"character":14},"end":{"line":33,"character":19}}}]}]},{"name":"owners","kind":18,"range":{"start":{"line":36,"character":2},"end":{"line":36,"character":27}},"selectionRange":{"start":{"line":36,"character":2},"end":{"line":36,"character":27}},"children":[{"name":"0","kind":15,"range":{"start":{"line":36,"character":12},"end":{"line":36,"character":26}},"selectionRange":{"start":{"line":36,"character":12},"end":{"line":36,"character":26}}}]}]},{"name":"locals","kind":5,"range":{"start":{"line":39,"character":0},"end":{"line":44,"character":1}},"selectionRange":{"start":{"line":39,"character":0},"end":{"line":44,"character":1}},"children":[{"name":"template_vars","kind":23,"range":{"start":{"line":40,"character":2},"end":{"line":43,"character":3}},"selectionRange":{"start":{"line":40,"character":2},"end":{"line":43,"character":3}},"children":[{"name":"controller_count","kind":14,"range":{"start":{"line":41,"character":4},"end":{"line":41,"character":43}},"selectionRange":{"start":{"line":41,"character":4},"end":{"line":41,"character":43}}},{"name":"cluster_id","kind":14,"range":{"start":{"line":42,"character":4},"end":{"line":42,"character":31}},"selectionRange":{"start":{"line":42,"character":4},"end":{"line":42,"character":31}}}]}]},{"name":"module \"cloudinit\"","kind":5,"range":{"start":{"line":46,"character":0},"end":{"line":63,"character":1}},"selectionRange":{"start":{"line":46,"character":0},"end":{"line":63,"character":1}},"children":[{"name":"source","kind":15,"range":{"start":{"line":47,"character":2},"end":{"line":47,"character":25}},"selectionRange":{"start":{"line":47,"character":2},"end":{"line":47,"character":25}}},{"name":"services","kind":18,"range":{"start":{"line":49,"character":2},"end":{"line":49,"character":32}},"selectionRange":{"start":{"line":49,"character":2},"end":{"line":49,"character":32}},"children":[{"name":"0","kind":15,"range":{"start":{"line":49,"character":14},"end":{"line":49,"character":21}},"selectionRange":{"start":{"line":49,"character":14},"end":{"line":49,"character":21}}},{"name":"1","kind":15,"range":{"start":{"line":49,"character":23},"end":{"line":49,"character":31}},"selectionRange":{"start":{"line":49,"character":23},"end":{"line":49,"character":31}}}]},{"name":"mounts","kind":18,"range":{"start":{"line":55,"character":2},"end":{"line":57,"character":3}},"selectionRange":{"start":{"line":55,"character":2},"end":{"line":57,"character":3}},"children":[{"name":"0","kind":18,"range":{"start":{"line":56,"character":4},"end":{"line":56,"character":153}},"selectionRange":{"start":{"line":56,"character":4},"end":{"line":56,"character":153}},"children":[{"name":"0","kind":13,"range":{"start":{"line":56,"character":5},"end":{"line":56,"character":97}},"selectionRange":{"start":{"line":56,"character":5},"end":{"line":56,"character":97}}},{"name":"1","kind":15,"range":{"start":{"line":56,"character":99},"end":{"line":56,"character":105}},"selectionRange":{"start":{"line":56,"character":99},"end":{"line":56,"character":105}}},{"name":"2","kind":15,"range":{"start":{"line":56,"character":107},"end":{"line":56,"character":113}},"selectionRange":{"start":{"line":56,"character":107},"end":{"line":56,"character":113}}},{"name":"3","kind":15,"range":{"start":{"line":56,"character":115},"end":{"line":56,"character":142}},"selectionRange":{"start":{"line":56,"character":115},"end":{"line":56,"character":142}}},{"name":"4","kind":15,"range":{"start":{"line":56,"character":144},"end":{"line":56,"character":147}},"selectionRange":{"start":{"line":56,"character":144},"end":{"line":56,"character":147}}},{"name":"5","kind":15,"range":{"start":{"line":56,"character":149},"end":{"line":56,"character":152}},"selectionRange":{"start":{"line":56,"character":149},"end":{"line":56,"character":152}}}]}]},{"name":"write_files","kind":23,"range":{"start":{"line":59,"character":2},"end":{"line":62,"character":3}},"selectionRange":{"start":{"line":59,"character":2},"end":{"line":62,"character":3}},"children":[{"name":"/etc/nomad.d/nomad.hcl","kind":13,"range":{"start":{"line":60,"character":4},"end":{"line":60,"character":102}},"selectionRange":{"start":{"line":60,"character":4},"end":{"line":60,"character":102}}},{"name":"/etc/consul.d/consul.hcl","kind":13,"range":{"start":{"line":61,"character":4},"end":{"line":61,"character":105}},"selectionRange":{"start":{"line":61,"character":4},"end":{"line":61,"character":105}}}]}]},{"name":"resource \"aws_instance\" \"main\"","kind":5,"range":{"start":{"line":67,"character":0},"end":{"line":94,"character":1}},"selectionRange":{"start":{"line":67,"character":0},"end":{"line":94,"character":1}},"children":[{"name":"ami","kind":14,"range":{"start":{"line":68,"character":2},"end":{"line":68,"character":55}},"selectionRange":{"start":{"line":68,"character":2},"end":{"line":68,"character":55}}},{"name":"instance_type","kind":15,"range":{"start":{"line":69,"character":2},"end":{"line":69,"character":37}},"selectionRange":{"start":{"line":69,"character":2},"end":{"line":69,"character":37}}},{"name":"iam_instance_profile","kind":14,"range":{"start":{"line":70,"character":2},"end":{"line":70,"character":47}},"selectionRange":{"start":{"line":70,"character":2},"end":{"line":70,"character":47}}},{"name":"vpc_security_group_ids","kind":14,"range":{"start":{"line":71,"character":2},"end":{"line":71,"character":49}},"selectionRange":{"start":{"line":71,"character":2},"end":{"line":71,"character":49}}},{"name":"subnet_id","kind":14,"range":{"start":{"line":72,"character":2},"end":{"line":72,"character":40}},"selectionRange":{"start":{"line":72,"character":2},"end":{"line":72,"character":40}}},{"name":"user_data_base64","kind":14,"range":{"start":{"line":73,"character":2},"end":{"line":73,"character":52}},"selectionRange":{"start":{"line":73,"character":2},"end":{"line":73,"character":52}}},{"name":"credit_specification","kind":5,"range":{"start":{"line":75,"character":2},"end":{"line":77,"character":3}},"selectionRange":{"start":{"line":75,"character":2},"end":{"line":77,"character":3}},"children":[{"name":"cpu_credits","kind":15,"range":{"start":{"line":76,"character":4},"end":{"line":76,"character":29}},"selectionRange":{"start":{"line":76,"character":4},"end":{"line":76,"character":29}}}]},{"name":"root_block_device","kind":5,"range":{"start":{"line":79,"character":2},"end":{"line":88,"character":3}},"selectionRange":{"start":{"line":79,"character":2},"end":{"line":88,"character":3}},"children":[{"name":"delete_on_termination","kind":17,"range":{"start":{"line":80,"character":4},"end":{"line":80,"character":32}},"selectionRange":{"start":{"line":80,"character":4},"end":{"line":80,"character":32}}},{"name":"encrypted","kind":17,"range":{"start":{"line":81,"character":4},"end":{"line":81,"character":32}},"selectionRange":{"start":{"line":81,"character":4},"end":{"line":81,"character":32}}},{"name":"volume_type","kind":15,"range":{"start":{"line":82,"character":4},"end":{"line":82,"character":33}},"selectionRange":{"start":{"line":82,"character":4},"end":{"line":82,"character":33}}},{"name":"volume_size","kind":16,"range":{"start":{"line":83,"character":4},"end":{"line":83,"character":29}},"selectionRange":{"start":{"line":83,"character":4},"end":{"line":83,"character":29}}},{"name":"tags","kind":13,"range":{"start":{"line":84,"character":4},"end":{"line":87,"character":6}},"selectionRange":{"start":{"line":84,"character":4},"end":{"line":87,"character":6}}}]},{"name":"tags","kind":13,"range":{"start":{"line":90,"character":2},"end":{"line":93,"character":4}},"selectionRange":{"start":{"line":90,"character":2},"end":{"line":93,"character":4}}}]},{"name":"data \"aws_subnet\" \"main\"","kind":5,"range":{"start":{"line":96,"character":0},"end":{"line":98,"character":1}},"selectionRange":{"start":{"line":96,"character":0},"end":{"line":98,"character":1}},"children":[{"name":"id","kind":14,"range":{"start":{"line":97,"character":2},"end":{"line":97,"character":20}},"selectionRange":{"start":{"line":97,"character":2},"end":{"line":97,"character":20}}}]},{"name":"resource \"aws_ebs_volume\" \"opt\"","kind":5,"range":{"start":{"line":100,"character":0},"end":{"line":106,"character":1}},"selectionRange":{"start":{"line":100,"character":0},"end":{"line":106,"character":1}},"children":[{"name":"availability_zone","kind":14,"range":{"start":{"line":101,"character":2},"end":{"line":101,"character":55}},"selectionRange":{"start":{"line":101,"character":2},"end":{"line":101,"character":55}}},{"name":"size","kind":16,"range":{"start":{"line":102,"character":2},"end":{"line":102,"character":24}},"selectionRange":{"start":{"line":102,"character":2},"end":{"line":102,"character":24}}},{"name":"type","kind":15,"range":{"start":{"line":103,"character":2},"end":{"line":103,"character":27}},"selectionRange":{"start":{"line":103,"character":2},"end":{"line":103,"character":27}}},{"name":"tags","kind":14,"range":{"start":{"line":105,"character":2},"end":{"line":105,"character":17}},"selectionRange":{"start":{"line":105,"character":2},"end":{"line":105,"character":17}}}]},{"name":"resource \"aws_volume_attachment\" \"opt\"","kind":5,"range":{"start":{"line":108,"character":0},"end":{"line":112,"character":1}},"selectionRange":{"start":{"line":108,"character":0},"end":{"line":112,"character":1}},"children":[{"name":"volume_id","kind":14,"range":{"start":{"line":109,"character":2},"end":{"line":109,"character":37}},"selectionRange":{"start":{"line":109,"character":2},"end":{"line":109,"character":37}}},{"name":"device_name","kind":15,"range":{"start":{"line":110,"character":2},"end":{"line":110,"character":26}},"selectionRange":{"start":{"line":110,"character":2},"end":{"line":110,"character":26}}},{"name":"instance_id","kind":14,"range":{"start":{"line":111,"character":2},"end":{"line":111,"character":36}},"selectionRange":{"start":{"line":111,"character":2},"end":{"line":111,"character":36}}}]}]
2021/10/13 14:01:51 server.go:248: Completed 1 requests [1.545389ms elapsed]
2021/10/13 14:01:52 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:01:52 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:01:52 rpc_logger.go:29: Incoming request for "textDocument/documentLink" (ID 12604): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"}}
2021/10/13 14:01:52 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:01:52 rpc_logger.go:50: Response to "textDocument/documentLink" (ID 12604): []
2021/10/13 14:01:52 server.go:248: Completed 1 requests [4.242754ms elapsed]
2021/10/13 14:01:52 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:01:52 server.go:596: Received request batch of size 1 (qlen=1)
2021/10/13 14:01:52 server.go:176: Dequeued request batch of length 1 (qlen=1)
2021/10/13 14:01:52 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:01:52 rpc_logger.go:29: Incoming notification for "$/cancelRequest": {"id":12605}
2021/10/13 14:01:52 rpc_logger.go:29: Incoming request for "textDocument/hover" (ID 12605): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"},"position":{"line":60,"character":37}}
2021/10/13 14:01:52 special.go:17: Cancelled request 12605 by client order
2021/10/13 14:01:52 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:01:52 hover.go:53: Looking for hover data at "instance.tf" -> hcl.Pos{Line:61, Column:38, Byte:1124}
2021/10/13 14:01:52 hover.go:55: received hover data: (*lang.HoverData)(nil)
2021/10/13 14:01:52 rpc_logger.go:45: Error for "textDocument/hover" (ID 12605): [-32800] error code -32800: instance.tf (61,38): unknown attribute "write_files"
2021/10/13 14:01:52 server.go:248: Completed 1 requests [3.447185ms elapsed]
2021/10/13 14:02:07 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:07 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:07 rpc_logger.go:29: Incoming request for "textDocument/hover" (ID 12606): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"},"position":{"line":56,"character":30}}
2021/10/13 14:02:07 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:07 hover.go:53: Looking for hover data at "instance.tf" -> hcl.Pos{Line:57, Column:31, Byte:939}
2021/10/13 14:02:07 hover.go:55: received hover data: (*lang.HoverData)(nil)
2021/10/13 14:02:07 rpc_logger.go:45: Error for "textDocument/hover" (ID 12606): [-32098] instance.tf (57,31): unknown attribute "mounts"
2021/10/13 14:02:07 server.go:248: Completed 1 requests [4.105855ms elapsed]
[Error - 2:02:07 PM] Request textDocument/hover failed.
  Message: instance.tf (57,31): unknown attribute "mounts"
  Code: -32098 
2021/10/13 14:02:07 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:07 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:07 rpc_logger.go:29: Incoming request for "textDocument/hover" (ID 12607): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"},"position":{"line":56,"character":30}}
2021/10/13 14:02:07 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:07 hover.go:53: Looking for hover data at "instance.tf" -> hcl.Pos{Line:57, Column:31, Byte:939}
2021/10/13 14:02:07 hover.go:55: received hover data: (*lang.HoverData)(nil)
2021/10/13 14:02:07 rpc_logger.go:45: Error for "textDocument/hover" (ID 12607): [-32098] instance.tf (57,31): unknown attribute "mounts"
2021/10/13 14:02:07 server.go:248: Completed 1 requests [6.788201ms elapsed]
[Error - 2:02:07 PM] Request textDocument/hover failed.
  Message: instance.tf (57,31): unknown attribute "mounts"
  Code: -32098 
2021/10/13 14:02:08 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:08 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:08 rpc_logger.go:29: Incoming request for "textDocument/hover" (ID 12608): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"},"position":{"line":52,"character":11}}
2021/10/13 14:02:08 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:08 hover.go:53: Looking for hover data at "instance.tf" -> hcl.Pos{Line:53, Column:12, Byte:861}
2021/10/13 14:02:08 hover.go:55: received hover data: (*lang.HoverData)(nil)
2021/10/13 14:02:08 rpc_logger.go:45: Error for "textDocument/hover" (ID 12608): [-32098] instance.tf (53,12): position outside of any attribute name, value or block
2021/10/13 14:02:08 server.go:248: Completed 1 requests [4.256885ms elapsed]
[Error - 2:02:08 PM] Request textDocument/hover failed.
  Message: instance.tf (53,12): position outside of any attribute name, value or block
  Code: -32098 
2021/10/13 14:02:10 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:10 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:10 rpc_logger.go:29: Incoming notification for "textDocument/didChange": {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf","version":1101},"contentChanges":[{"range":{"start":{"line":53,"character":2},"end":{"line":53,"character":4}},"rangeLength":2,"text":""},{"range":{"start":{"line":52,"character":2},"end":{"line":52,"character":4}},"rangeLength":2,"text":""},{"range":{"start":{"line":51,"character":2},"end":{"line":51,"character":4}},"rangeLength":2,"text":""}]}
2021/10/13 14:02:10 module_loader.go:213: ML: enqueing "OpTypeParseModuleConfiguration" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:148: executing "OpTypeParseModuleConfiguration" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:200: finished "OpTypeParseModuleConfiguration" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:213: ML: enqueing "OpTypeParseVariables" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:148: executing "OpTypeParseVariables" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:200: finished "OpTypeParseVariables" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:213: ML: enqueing "OpTypeLoadModuleMetadata" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:148: executing "OpTypeLoadModuleMetadata" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:200: finished "OpTypeLoadModuleMetadata" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceTargets" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:148: executing "OpTypeDecodeReferenceTargets" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:10 module_loader.go:200: finished "OpTypeDecodeReferenceTargets" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:213: ML: enqueing "OpTypeDecodeReferenceOrigins" module operation: /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 module_loader.go:148: executing "OpTypeDecodeReferenceOrigins" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:10 module_loader.go:200: finished "OpTypeDecodeReferenceOrigins" for /Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node
2021/10/13 14:02:10 server.go:448: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf","diagnostics":[]}
2021/10/13 14:02:10 server.go:448: Posting server notification "textDocument/publishDiagnostics" {"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node","diagnostics":[]}
2021/10/13 14:02:11 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:11 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:11 rpc_logger.go:29: Incoming request for "textDocument/semanticTokens/full" (ID 12609): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"}}
2021/10/13 14:02:11 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:11 rpc_logger.go:50: Response to "textDocument/semanticTokens/full" (ID 12609): {"data":[0,0,8,0,0,0,9,12,1,2,2,0,8,0,0,0,9,11,1,2,2,0,8,0,0,0,9,12,1,2,2,0,8,0,0,0,9,18,1,2,2,0,8,0,0,0,9,18,1,2,2,0,8,0,0,0,9,20,1,2,2,0,8,0,0,0,9,6,1,2,2,0,4,0,0,0,5,12,1,2,0,13,6,1,0,1,2,2,2,2,0,5,3,6,0,0,4,9,6,0,3,0,4,0,0,0,5,9,1,2,0,10,8,1,0,1,2,11,2,2,0,14,4,3,0,7,2,6,0,2,1,4,4,2,0,0,9,6,1,0,1,4,6,2,0,0,10,57,1,0,3,2,6,0,2,1,4,4,2,0,0,9,21,1,0,1,4,6,2,0,0,10,5,1,0,3,2,6,2,2,0,10,14,1,0,3,0,6,0,0,1,2,13,2,0,6,0,6,0,0,0,7,11,1,0,1,2,6,2,0,0,9,14,1,0,20,0,8,0,0,0,9,14,1,2,0,15,6,1,0,1,2,3,2,2,0,25,4,6,0,0,5,7,6,0,0,8,6,6,0,0,7,8,6,0,1,2,13,2,2,0,25,10,1,0,1,2,20,2,2,0,25,3,6,0,0,4,16,6,0,1,2,22,2,2,0,25,3,6,0,0,4,18,6,0,1,2,9,2,2,0,25,3,6,0,0,4,9,6,0,1,2,16,2,2,2,2,20,0,2,1,4,11,2,0,0,14,11,1,0,3,2,17,0,2,1,4,21,2,0,0,24,4,3,0,1,4,9,2,0,0,24,4,3,0,1,4,11,2,0,0,24,5,1,0,1,4,11,2,0,0,24,1,4,0,1,4,4,2,0,6,2,4,2,2,6,0,4,0,0,0,5,12,1,2,0,13,6,1,0,1,2,2,2,2,0,5,3,6,0,0,4,9,6,0,3,0,8,0,0,0,9,16,1,2,0,17,5,1,0,1,2,17,2,2,1,2,4,2,2,0,20,2,4,0,1,2,4,2,2,0,20,5,1,0,2,2,4,2,2,0,7,3,6,0,0,4,4,6,0,3,0,8,0,0,0,9,23,1,2,0,24,5,1,0,1,2,9,2,2,0,14,14,6,0,0,15,3,6,0,0,4,2,6,0,1,2,11,2,2,0,14,10,1,0,1,2,11,2,2,0,14,12,6,0,0,13,4,6,0,0,5,2,6,0]}
2021/10/13 14:02:11 server.go:248: Completed 1 requests [4.926939ms elapsed]
2021/10/13 14:02:11 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:11 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:11 rpc_logger.go:29: Incoming request for "textDocument/documentSymbol" (ID 12610): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"}}
2021/10/13 14:02:11 rpc_logger.go:50: Response to "textDocument/documentSymbol" (ID 12610): [{"name":"variable \"identifier\"","kind":5,"range":{"start":{"line":0,"character":0},"end":{"line":0,"character":24}},"selectionRange":{"start":{"line":0,"character":0},"end":{"line":0,"character":24}}},{"name":"variable \"subnet_id\"","kind":5,"range":{"start":{"line":2,"character":0},"end":{"line":2,"character":23}},"selectionRange":{"start":{"line":2,"character":0},"end":{"line":2,"character":23}}},{"name":"variable \"cluster_id\"","kind":5,"range":{"start":{"line":4,"character":0},"end":{"line":4,"character":24}},"selectionRange":{"start":{"line":4,"character":0},"end":{"line":4,"character":24}}},{"name":"variable \"controller_count\"","kind":5,"range":{"start":{"line":6,"character":0},"end":{"line":6,"character":30}},"selectionRange":{"start":{"line":6,"character":0},"end":{"line":6,"character":30}}},{"name":"variable \"instance_profile\"","kind":5,"range":{"start":{"line":8,"character":0},"end":{"line":8,"character":30}},"selectionRange":{"start":{"line":8,"character":0},"end":{"line":8,"character":30}}},{"name":"variable \"security_group_ids\"","kind":5,"range":{"start":{"line":10,"character":0},"end":{"line":10,"character":32}},"selectionRange":{"start":{"line":10,"character":0},"end":{"line":10,"character":32}}},{"name":"variable \"tags\"","kind":5,"range":{"start":{"line":12,"character":0},"end":{"line":12,"character":18}},"selectionRange":{"start":{"line":12,"character":0},"end":{"line":12,"character":18}}},{"name":"data \"aws_subnet\" \"main\"","kind":5,"range":{"start":{"line":14,"character":0},"end":{"line":16,"character":1}},"selectionRange":{"start":{"line":14,"character":0},"end":{"line":16,"character":1}},"children":[{"name":"id","kind":14,"range":{"start":{"line":15,"character":2},"end":{"line":15,"character":20}},"selectionRange":{"start":{"line":15,"character":2},"end":{"line":15,"character":20}}}]},{"name":"data \"aws_ami\" \"ubuntu\"","kind":5,"range":{"start":{"line":18,"character":0},"end":{"line":37,"character":1}},"selectionRange":{"start":{"line":18,"character":0},"end":{"line":37,"character":1}},"children":[{"name":"most_recent","kind":17,"range":{"start":{"line":19,"character":2},"end":{"line":19,"character":20}},"selectionRange":{"start":{"line":19,"character":2},"end":{"line":19,"character":20}}},{"name":"filter","kind":5,"range":{"start":{"line":26,"character":2},"end":{"line":29,"character":3}},"selectionRange":{"start":{"line":26,"character":2},"end":{"line":29,"character":3}},"children":[{"name":"name","kind":15,"range":{"start":{"line":27,"character":4},"end":{"line":27,"character":19}},"selectionRange":{"start":{"line":27,"character":4},"end":{"line":27,"character":19}}},{"name":"values","kind":18,"range":{"start":{"line":28,"character":4},"end":{"line":28,"character":72}},"selectionRange":{"start":{"line":28,"character":4},"end":{"line":28,"character":72}},"children":[{"name":"0","kind":15,"range":{"start":{"line":28,"character":14},"end":{"line":28,"character":71}},"selectionRange":{"start":{"line":28,"character":14},"end":{"line":28,"character":71}}}]}]},{"name":"filter","kind":5,"range":{"start":{"line":31,"character":2},"end":{"line":34,"character":3}},"selectionRange":{"start":{"line":31,"character":2},"end":{"line":34,"character":3}},"children":[{"name":"name","kind":15,"range":{"start":{"line":32,"character":4},"end":{"line":32,"character":34}},"selectionRange":{"start":{"line":32,"character":4},"end":{"line":32,"character":34}}},{"name":"values","kind":18,"range":{"start":{"line":33,"character":4},"end":{"line":33,"character":20}},"selectionRange":{"start":{"line":33,"character":4},"end":{"line":33,"character":20}},"children":[{"name":"0","kind":15,"range":{"start":{"line":33,"character":14},"end":{"line":33,"character":19}},"selectionRange":{"start":{"line":33,"character":14},"end":{"line":33,"character":19}}}]}]},{"name":"owners","kind":18,"range":{"start":{"line":36,"character":2},"end":{"line":36,"character":27}},"selectionRange":{"start":{"line":36,"character":2},"end":{"line":36,"character":27}},"children":[{"name":"0","kind":15,"range":{"start":{"line":36,"character":12},"end":{"line":36,"character":26}},"selectionRange":{"start":{"line":36,"character":12},"end":{"line":36,"character":26}}}]}]},{"name":"locals","kind":5,"range":{"start":{"line":39,"character":0},"end":{"line":44,"character":1}},"selectionRange":{"start":{"line":39,"character":0},"end":{"line":44,"character":1}},"children":[{"name":"template_vars","kind":23,"range":{"start":{"line":40,"character":2},"end":{"line":43,"character":3}},"selectionRange":{"start":{"line":40,"character":2},"end":{"line":43,"character":3}},"children":[{"name":"controller_count","kind":14,"range":{"start":{"line":41,"character":4},"end":{"line":41,"character":43}},"selectionRange":{"start":{"line":41,"character":4},"end":{"line":41,"character":43}}},{"name":"cluster_id","kind":14,"range":{"start":{"line":42,"character":4},"end":{"line":42,"character":31}},"selectionRange":{"start":{"line":42,"character":4},"end":{"line":42,"character":31}}}]}]},{"name":"module \"cloudinit\"","kind":5,"range":{"start":{"line":46,"character":0},"end":{"line":63,"character":1}},"selectionRange":{"start":{"line":46,"character":0},"end":{"line":63,"character":1}},"children":[{"name":"source","kind":15,"range":{"start":{"line":47,"character":2},"end":{"line":47,"character":25}},"selectionRange":{"start":{"line":47,"character":2},"end":{"line":47,"character":25}}},{"name":"services","kind":18,"range":{"start":{"line":49,"character":2},"end":{"line":49,"character":32}},"selectionRange":{"start":{"line":49,"character":2},"end":{"line":49,"character":32}},"children":[{"name":"0","kind":15,"range":{"start":{"line":49,"character":14},"end":{"line":49,"character":21}},"selectionRange":{"start":{"line":49,"character":14},"end":{"line":49,"character":21}}},{"name":"1","kind":15,"range":{"start":{"line":49,"character":23},"end":{"line":49,"character":31}},"selectionRange":{"start":{"line":49,"character":23},"end":{"line":49,"character":31}}}]},{"name":"ebs_volumes","kind":23,"range":{"start":{"line":51,"character":2},"end":{"line":53,"character":3}},"selectionRange":{"start":{"line":51,"character":2},"end":{"line":53,"character":3}}},{"name":"mounts","kind":18,"range":{"start":{"line":55,"character":2},"end":{"line":57,"character":3}},"selectionRange":{"start":{"line":55,"character":2},"end":{"line":57,"character":3}},"children":[{"name":"0","kind":18,"range":{"start":{"line":56,"character":4},"end":{"line":56,"character":153}},"selectionRange":{"start":{"line":56,"character":4},"end":{"line":56,"character":153}},"children":[{"name":"0","kind":13,"range":{"start":{"line":56,"character":5},"end":{"line":56,"character":97}},"selectionRange":{"start":{"line":56,"character":5},"end":{"line":56,"character":97}}},{"name":"1","kind":15,"range":{"start":{"line":56,"character":99},"end":{"line":56,"character":105}},"selectionRange":{"start":{"line":56,"character":99},"end":{"line":56,"character":105}}},{"name":"2","kind":15,"range":{"start":{"line":56,"character":107},"end":{"line":56,"character":113}},"selectionRange":{"start":{"line":56,"character":107},"end":{"line":56,"character":113}}},{"name":"3","kind":15,"range":{"start":{"line":56,"character":115},"end":{"line":56,"character":142}},"selectionRange":{"start":{"line":56,"character":115},"end":{"line":56,"character":142}}},{"name":"4","kind":15,"range":{"start":{"line":56,"character":144},"end":{"line":56,"character":147}},"selectionRange":{"start":{"line":56,"character":144},"end":{"line":56,"character":147}}},{"name":"5","kind":15,"range":{"start":{"line":56,"character":149},"end":{"line":56,"character":152}},"selectionRange":{"start":{"line":56,"character":149},"end":{"line":56,"character":152}}}]}]},{"name":"write_files","kind":23,"range":{"start":{"line":59,"character":2},"end":{"line":62,"character":3}},"selectionRange":{"start":{"line":59,"character":2},"end":{"line":62,"character":3}},"children":[{"name":"/etc/nomad.d/nomad.hcl","kind":13,"range":{"start":{"line":60,"character":4},"end":{"line":60,"character":102}},"selectionRange":{"start":{"line":60,"character":4},"end":{"line":60,"character":102}}},{"name":"/etc/consul.d/consul.hcl","kind":13,"range":{"start":{"line":61,"character":4},"end":{"line":61,"character":105}},"selectionRange":{"start":{"line":61,"character":4},"end":{"line":61,"character":105}}}]}]},{"name":"resource \"aws_instance\" \"main\"","kind":5,"range":{"start":{"line":67,"character":0},"end":{"line":94,"character":1}},"selectionRange":{"start":{"line":67,"character":0},"end":{"line":94,"character":1}},"children":[{"name":"ami","kind":14,"range":{"start":{"line":68,"character":2},"end":{"line":68,"character":55}},"selectionRange":{"start":{"line":68,"character":2},"end":{"line":68,"character":55}}},{"name":"instance_type","kind":15,"range":{"start":{"line":69,"character":2},"end":{"line":69,"character":37}},"selectionRange":{"start":{"line":69,"character":2},"end":{"line":69,"character":37}}},{"name":"iam_instance_profile","kind":14,"range":{"start":{"line":70,"character":2},"end":{"line":70,"character":47}},"selectionRange":{"start":{"line":70,"character":2},"end":{"line":70,"character":47}}},{"name":"vpc_security_group_ids","kind":14,"range":{"start":{"line":71,"character":2},"end":{"line":71,"character":49}},"selectionRange":{"start":{"line":71,"character":2},"end":{"line":71,"character":49}}},{"name":"subnet_id","kind":14,"range":{"start":{"line":72,"character":2},"end":{"line":72,"character":40}},"selectionRange":{"start":{"line":72,"character":2},"end":{"line":72,"character":40}}},{"name":"user_data_base64","kind":14,"range":{"start":{"line":73,"character":2},"end":{"line":73,"character":52}},"selectionRange":{"start":{"line":73,"character":2},"end":{"line":73,"character":52}}},{"name":"credit_specification","kind":5,"range":{"start":{"line":75,"character":2},"end":{"line":77,"character":3}},"selectionRange":{"start":{"line":75,"character":2},"end":{"line":77,"character":3}},"children":[{"name":"cpu_credits","kind":15,"range":{"start":{"line":76,"character":4},"end":{"line":76,"character":29}},"selectionRange":{"start":{"line":76,"character":4},"end":{"line":76,"character":29}}}]},{"name":"root_block_device","kind":5,"range":{"start":{"line":79,"character":2},"end":{"line":88,"character":3}},"selectionRange":{"start":{"line":79,"character":2},"end":{"line":88,"character":3}},"children":[{"name":"delete_on_termination","kind":17,"range":{"start":{"line":80,"character":4},"end":{"line":80,"character":32}},"selectionRange":{"start":{"line":80,"character":4},"end":{"line":80,"character":32}}},{"name":"encrypted","kind":17,"range":{"start":{"line":81,"character":4},"end":{"line":81,"character":32}},"selectionRange":{"start":{"line":81,"character":4},"end":{"line":81,"character":32}}},{"name":"volume_type","kind":15,"range":{"start":{"line":82,"character":4},"end":{"line":82,"character":33}},"selectionRange":{"start":{"line":82,"character":4},"end":{"line":82,"character":33}}},{"name":"volume_size","kind":16,"range":{"start":{"line":83,"character":4},"end":{"line":83,"character":29}},"selectionRange":{"start":{"line":83,"character":4},"end":{"line":83,"character":29}}},{"name":"tags","kind":13,"range":{"start":{"line":84,"character":4},"end":{"line":87,"character":6}},"selectionRange":{"start":{"line":84,"character":4},"end":{"line":87,"character":6}}}]},{"name":"tags","kind":13,"range":{"start":{"line":90,"character":2},"end":{"line":93,"character":4}},"selectionRange":{"start":{"line":90,"character":2},"end":{"line":93,"character":4}}}]},{"name":"data \"aws_subnet\" \"main\"","kind":5,"range":{"start":{"line":96,"character":0},"end":{"line":98,"character":1}},"selectionRange":{"start":{"line":96,"character":0},"end":{"line":98,"character":1}},"children":[{"name":"id","kind":14,"range":{"start":{"line":97,"character":2},"end":{"line":97,"character":20}},"selectionRange":{"start":{"line":97,"character":2},"end":{"line":97,"character":20}}}]},{"name":"resource \"aws_ebs_volume\" \"opt\"","kind":5,"range":{"start":{"line":100,"character":0},"end":{"line":106,"character":1}},"selectionRange":{"start":{"line":100,"character":0},"end":{"line":106,"character":1}},"children":[{"name":"availability_zone","kind":14,"range":{"start":{"line":101,"character":2},"end":{"line":101,"character":55}},"selectionRange":{"start":{"line":101,"character":2},"end":{"line":101,"character":55}}},{"name":"size","kind":16,"range":{"start":{"line":102,"character":2},"end":{"line":102,"character":24}},"selectionRange":{"start":{"line":102,"character":2},"end":{"line":102,"character":24}}},{"name":"type","kind":15,"range":{"start":{"line":103,"character":2},"end":{"line":103,"character":27}},"selectionRange":{"start":{"line":103,"character":2},"end":{"line":103,"character":27}}},{"name":"tags","kind":14,"range":{"start":{"line":105,"character":2},"end":{"line":105,"character":17}},"selectionRange":{"start":{"line":105,"character":2},"end":{"line":105,"character":17}}}]},{"name":"resource \"aws_volume_attachment\" \"opt\"","kind":5,"range":{"start":{"line":108,"character":0},"end":{"line":112,"character":1}},"selectionRange":{"start":{"line":108,"character":0},"end":{"line":112,"character":1}},"children":[{"name":"volume_id","kind":14,"range":{"start":{"line":109,"character":2},"end":{"line":109,"character":37}},"selectionRange":{"start":{"line":109,"character":2},"end":{"line":109,"character":37}}},{"name":"device_name","kind":15,"range":{"start":{"line":110,"character":2},"end":{"line":110,"character":26}},"selectionRange":{"start":{"line":110,"character":2},"end":{"line":110,"character":26}}},{"name":"instance_id","kind":14,"range":{"start":{"line":111,"character":2},"end":{"line":111,"character":36}},"selectionRange":{"start":{"line":111,"character":2},"end":{"line":111,"character":36}}}]}]
2021/10/13 14:02:11 server.go:248: Completed 1 requests [28.751317ms elapsed]
2021/10/13 14:02:11 server.go:596: Received request batch of size 1 (qlen=0)
2021/10/13 14:02:11 server.go:176: Dequeued request batch of length 1 (qlen=0)
2021/10/13 14:02:11 rpc_logger.go:29: Incoming request for "textDocument/documentLink" (ID 12611): {"textDocument":{"uri":"file:///Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node/instance.tf"}}
2021/10/13 14:02:11 provider_schema.go:196: PSS: getting provider schema (/Users/rob/Repository/explosion/terraform-aws-broker/modules/control_node, registry.terraform.io/-/aws, )
2021/10/13 14:02:11 rpc_logger.go:50: Response to "textDocument/documentLink" (ID 12611): []
2021/10/13 14:02:11 server.go:248: Completed 1 requests [3.272713ms elapsed]

VS Code

Version: 1.60.2

Operating System

11.6 (20G165)

Terraform Version

Terraform v1.0.9
on darwin_amd64

Steps To Reproduce

Steps to reproduce the behavior:

  1. Place example text from below into an editor window.

Include any relevant Terraform configuration or project structure:

locals {
  key_name = "testing"
  test_example = {
    (local.key_name): "test"
  }
}

Expected Behavior

Highlighting should not break.

Actual Behavior

Highlighting breaks at the point of the wrapped key- everything after that is broken, but everything before it works fine. There are no errors.

Additional context

@tedivm tedivm added the bug Something isn't working label Oct 13, 2021
@Rabattkarte
Copy link
Member

Rabattkarte commented Feb 14, 2022

I have a similar/the same issue, that highlighting does not work for keywords like var. or local., this just happens from time to time and I cannot pinpoint a specific root cause.

Can I somehow provide input to this? An extension bisect did not provide any offending extension.

@dbanck dbanck added the syntax label Feb 14, 2022
@dbanck
Copy link
Member

dbanck commented Feb 14, 2022

Thank you for taking the time to report this issue, @tedivm! Apologies we haven't replied sooner. We're currently in the process of resolving all syntax-related issues.

I'm able to reproduce the issue in the current version of the extension.
CleanShot 2022-02-14 at 17 42 53@2x

@Rabattkarte can you share a piece of Terraform code in which syntax highlighting breaks for you?

@Rabattkarte
Copy link
Member

Since you already guessed it, I have troubles with this for example: #938

A failing code snippet is as simple as this:

resource "azurerm_resource_group" "main" {
  name     = local.resource_group_name
  location = var.location

  tags = local.all_tags
}

@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 Apr 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working syntax
Projects
None yet
4 participants