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

Provider completion for namespaced functions after single colon #385

Open
ansgarm opened this issue Mar 22, 2024 · 0 comments
Open

Provider completion for namespaced functions after single colon #385

ansgarm opened this issue Mar 22, 2024 · 0 comments

Comments

@ansgarm
Copy link
Member

ansgarm commented Mar 22, 2024

Background

Namespaced functions in HCL that are not complete (e.g. provider::aws, a::, or a::b) return a ExprSyntaxError expression as long as there are no parentheses. However, if there's only one colon (e.g. a::b: or see gif below), hcl parses this differently and does not return an ExprSyntaxError for the position after the single colon.

fns-recovery-stuck2

Proposal

Either try to do some better recovery for these cases (tbd how) or find a fix in hcl that could catch these cases and allow looking for single colons when already parsing a namespaced function (this might only work after the first double colon though).

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

No branches or pull requests

1 participant