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

Syntax error with heredoc's on Windows in TF v0.6.7 #4069

Closed
bensojona opened this issue Nov 25, 2015 · 4 comments · Fixed by hashicorp/hcl#71
Closed

Syntax error with heredoc's on Windows in TF v0.6.7 #4069

bensojona opened this issue Nov 25, 2015 · 4 comments · Fixed by hashicorp/hcl#71

Comments

@bensojona
Copy link
Contributor

terraform get fails with the error Error loading Terraform: Error loading config: Error parsing C:\Users\Steve\Documents\RubymineProjects\best-practices\terraform\providers\aws\us_west_1_staging\main.tf: At 231:9: illegal char anywhere a heredoc used.

v0.6.6 works fine, but 0.6.7 fails with this syntax error. Seems to work fine on OS X, but Windows not so much.

Example of where it's failing for the error mentioned above (L231:9)...

output "configuration" {
  value = <<CONFIGURATION
CONFIGURATION
}
@partamonov
Copy link

I saw same behavior. 0.6.7 looks like more sensitive to line endings. I solved similar issue with converting your.tf file to linux line endings

@bensojona
Copy link
Contributor Author

@partamonov will give it a shot, thanks!

@jen20
Copy link
Contributor

jen20 commented Nov 26, 2015

Seems there are indeed some issues upstream with HCL and Windows line ending support. I'll work on getting them fixed tomorrow.

jen20 added a commit that referenced this issue Dec 1, 2015
This may be brittle as it makes use of .gitattributes to override the
autocrlf setting in order to have an input file with Windows line
endings across multiple platforms.
jen20 added a commit that referenced this issue Dec 1, 2015
This may be brittle as it makes use of .gitattributes to override the
autocrlf setting in order to have an input file with Windows line
endings across multiple platforms.
jen20 added a commit that referenced this issue Dec 1, 2015
@ghost
Copy link

ghost commented Apr 29, 2020

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 ghost locked and limited conversation to collaborators Apr 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants