VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Code Style / formatter : preview does not work for Align Properties #288

Closed rakk closed 3 years ago

rakk commented 4 years ago

Prerequisites

Installation details

Terraform Configuration Files

N/A

Exception

N/A

Expected Behavior

When I open IntelliJ Settings -> Editor -> Code Style -> Terraform Config Then open tab: Other Then select On equals Then the preview (next to right) is updated accordingly:

simple           = true
pa.int           = false
under_scr        = 1
mi-nus            = 'yep'

#another logical block
_5                    = true
w1th.num8er5 = 'acceptable'

Actual Behavior

Preview does not change at all.

simple = true
pa.int = false
under_scr = 1
mi-nus = 'yep'

#another logical block
_5 = true
w1th.num8er5 = 'acceptable'

This suggests that the feature is not working. But actually is working fine.

Steps to Reproduce

  1. When I open IntelliJ Settings -> Editor -> Code Style -> Terraform Config
  2. Then open tab: Other
  3. Then select On equals
faridnsh commented 4 years ago

I can replicate this.

nmarchini commented 3 years ago

I have this issue also, any news on when a fix can be put in place?

IntelliJ IDEA 2020.3 (Community Edition) Build #IC-203.5981.155, built on November 30, 2020 Runtime version: 11.0.9+11-b1145.21 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 10.15.7 GC: ParNew, ConcurrentMarkSweep Memory: 1979M Cores: 12 Non-Bundled Plugins: org.intellij.plugins.hcl, name.kropp.intellij.makefile, com.dubreuia

intellij-hcl plugin version: 0.7.10 Terraform version: v0.13.00

VladRassokhin commented 3 years ago

Fixed in 0.7.14