Skip to content
This repository has been archived by the owner on Oct 3, 2019. It is now read-only.

Missing newline at the end of a file causes error #18

Closed
apparentlymart opened this issue Mar 3, 2018 · 1 comment
Closed

Missing newline at the end of a file causes error #18

apparentlymart opened this issue Mar 3, 2018 · 1 comment
Labels

Comments

@apparentlymart
Copy link
Contributor

Due to some details of how the attribute and block parsers terminate, an error is currently produced if a file does not end with a newline character:

Error: Missing newline after block definition

  on .terraform/init-from-module/root/alibaba-terraform-alicloud-ecs-instance-063c382/variables.tf line 156:
 153: variable "number_of_instances" {
 154:   description = "The number of launching instances one time."
 155:   default = 1
 156: }

A newline is required after a block definition at the end of a file.

This was a stopgap solution made during the prototyping phase, but we need to accommodate files with missing trailing newlines now in order to read real Terraform configurations in the wild.

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

No branches or pull requests

1 participant