-
Notifications
You must be signed in to change notification settings - Fork 26
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
"Invalid character" when evaluating expressions with directives #42
Comments
terraform_deprecated_index
rule: environment.tf:9,9-10: Invalid character; This character is not used within the language., and 183 other diagnostic(s)terraform_deprecated_index
: "This character is not used within the language"
terraform_deprecated_index
: "This character is not used within the language"
Moved to |
Just in case this is happening only in version 2.0.0, previous version is
unaffected.
…On Tue, 25 Oct 2022 at 00:09, Ben Drucker ***@***.***> wrote:
Moved to tflint as it seems very unlikely this is localized to the
terraform ruleset, meaning the root cause is the CLI or plugin SDK.
Assuming that' the case, this bug would arise anytime a plugin tries to
evaluate an attribute containing a directive in its expression. The
terraform ruleset just does a lot of meta-evaluation, i.e. visiting all
resource attributes rather than 1 specific one.
—
Reply to this email directly, view it on GitHub
<#42>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVB2V7KJE5JKJDDIVEENPP3WE4CKRANCNFSM6AAAAAARNMTUWU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Using TFLint version 0.42.1, downgrading the terraform ruleset from
For a complete job log, see https://github.com/terraform-aws-modules/terraform-aws-lambda/actions/runs/3312065827/jobs/5468288824 |
Hmm, so debugging from the bottom up identified this as the source of the error diagnostics:
I'm able to reproduce the error in the tests on |
Latest ruleset (0.2.0) is not able to check terraform code, this doesn't not happen with version 0.1.1:
Broken code:
Error:
Plugin config:
Versions:
The text was updated successfully, but these errors were encountered: