SemanticDiff icon indicating copy to clipboard operation
SemanticDiff copied to clipboard

Hcl support

Open cveld opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. We work with terraform and it would be great if your tool would support merging terraform code as well. Terraform code is written in hcl, hashicorp configuration language.

Describe the solution you'd like Hcl semantic merge support.

Describe alternatives you've considered N/A

Additional context N/A

cveld avatar Mar 07 '24 08:03 cveld

Terraform is the (one of the main...) language of many DevOps folks, and we're often the ones to introduce tools like SemanticDiff to our teams. This would really help us want to use and spread the word!

KayakinCoder avatar Oct 27 '25 14:10 KayakinCoder

A stopgap (that would also work with other unsupported languages) could be to have a "language agnostic" mode with a togglable "ignore whitespace" mode (because stuff like Python exists).

Far from the full functionality of semantic diff, but it'd be better than regular diff. For example, I applied the formatter to an unformatted HCL codebase and having to check all of that would have benefited from just a diff that ignored whitespace differences, let alone a semantic diff with some generic mechanisms.

asdkant-bf avatar Dec 01 '25 14:12 asdkant-bf