Skip to content

Fix | Parsing Error in locals.tf File** #301

@exequielrafaela

Description

@exequielrafaela

Bug Report: Parsing Error in locals.tf File

Describe the Bug

Users have encountered a parsing error in the locals.tf file when using Leverage CLI version 1.14.0. The error message lacks specificity, making it challenging to identify and resolve the issue.

Expected Behavior

The Leverage CLI should provide clear and detailed error messages, including the exact line and column numbers where the parsing error occurs, to facilitate efficient debugging.

Steps to Reproduce

  1. Use Leverage CLI version 1.14.0.
  2. Execute a command that parses the locals.tf file.
  3. Encounter a generic parsing error without specific details about the location of the issue.

Screenshots

N/A

Environment:

  • OS: Linux, OSX, WSL
  • Leverage CLI Version: 1.14.0
  • Terraform Version: [Specify version]

Additional Context

Users have reported that wrapping the problematic expression in parentheses resolves the issue temporarily. However, a permanent fix is needed to improve error reporting and handling in the Leverage CLI.

This issue has been discussed in the Binbash Slack channel, where users shared their experiences and temporary solutions.

Implementing more informative error messages will enhance the user experience by making it easier to identify and fix syntax errors in Terraform files.

Metadata

Metadata

Labels

bugSomething isn't workingpatch

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions