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

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

@apparentlymart

Description

@apparentlymart

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions