You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In all of the above cases we're unable to provide any completion primarily because the upstream HCL parser is thrown off by the invalid stuff which causes it to return "empty literal value expression" such as the one below:
Background
While implementing support for
ForExpr
in #368 a few edge cases surfaced around completion:ForExpr
attr = [ for k, v in /*HERE*/ ]
attr = [ for k, v in coll if /*HERE*/ ]
attr = { for k, v in /*HERE*/ }
attr = { for k, v in coll if /*HERE*/ }
Traversal
(with trailing dot) inside otherwise completeForExpr
attr = [ for k, v in var./*HERE*/ ]
attr = [ for k, v in coll if var./*HERE*/ ]
attr = { for k, v in var./*HERE*/ }
attr = { for k, v in coll if var./*HERE*/ }
In all of the above cases we're unable to provide any completion primarily because the upstream HCL parser is thrown off by the invalid stuff which causes it to return "empty literal value expression" such as the one below:
Proposal
Investigate either changes upstream in HCL or some form of recovery downstream here in hcl-lang that would enable completion in the above contexts.
The text was updated successfully, but these errors were encountered: