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
Probable Cause
I had copied some of the variable information in the json file from microsoft one note. This caused some special characters to appear which were not directly visible.
As I kept using json terraform kept crashing. Once I moved to tfvars file I got errors saying unrecognised
characters [it did not show which character though] properly from terraform.
Expected Output
Similar to tfvars as input i should get an error message for json file also and terraform should not crash.
This crash has been fixed as of 0.13.0-rc1, which now displays a more useful error diagnostic. The upstream pull request fixing this is hashicorp/hcl#358. Here's the result:
I think this is a pretty reasonable diagnostic, which would hopefully have been more helpful in identifying this invalid whitespace.
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.
ghost
locked and limited conversation to collaborators
Aug 31, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugcrashv0.12Issues (primarily bugs) reported against v0.12 releases
Terraform version:
Terraform v0.12.29
Issue Description
Running terraform to create a simple resource group results in terraform crashing.
Terraform actual output
crash.log
Probable Cause
I had copied some of the variable information in the json file from microsoft one note. This caused some special characters to appear which were not directly visible.
As I kept using json terraform kept crashing. Once I moved to tfvars file I got errors saying unrecognised
characters [it did not show which character though] properly from terraform.
Expected Output
Similar to tfvars as input i should get an error message for json file also and terraform should not crash.
JSON File
terraform.tfvars.log
The text was updated successfully, but these errors were encountered: