intellij-hcl icon indicating copy to clipboard operation
intellij-hcl copied to clipboard

Autocompletion/suggestion for variables , outputs

Open ahaffar opened this issue 5 years ago • 7 comments

Autocompletion/suggestion for variables, output and Interpolation Syntax not working on 0.7.6 on Windows, i had to downgrade to 0.7.5 version

Prerequisites

  • [x] Ensure you have latest version of plugin installed
  • [x] Search for possible issue duplicates

Installation details

  • [x] IDE version (PyCharm 2019.1.4 Community Edition - Build #PC-191.8026.44, built on July 30, 2019 JRE: 11.0.2+9-b159.64 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0)
  • [x] intellij-hcl plugin version (0.7.6)
  • [x] Terraform version (12.8)

Expected Behavior

autocompletion/suggestion for reousce_names should appear

Actual Behavior

I have to manually write the full resource names along with attribute references

Steps to Reproduce

1- create an output variable and see if the autocompletion/suggestion will work while entering the value field

ahaffar avatar Sep 18 '19 20:09 ahaffar

Please attach some code example

VladRassokhin avatar Sep 20 '19 14:09 VladRassokhin

the below snippets are from the same project but using different versions.

Version 7.6

as you can see there are no suggestions image

Version 7.5

image

ahaffar avatar Sep 23 '19 16:09 ahaffar

appreciate any help

ahaffar avatar Sep 25 '19 08:09 ahaffar

It doesn't work for me either on 0.7.6 on Linux. Autocompletion appear for a nanosecond then disappear

ethanquix avatar Oct 01 '19 19:10 ethanquix

In 0.7.6 I've improved filtering, now resource type is not in completion list if there's no resource of such type in module. You can have previous experience by invoking completion (pressing Ctrl+Space) one more time.

VladRassokhin avatar Oct 09 '19 08:10 VladRassokhin

You can have previous experience by invoking completion (pressing Ctrl+Space) one more time.

This does not work in 0.7.7. Is there another workaround? Could you please explain how is this an improvement? So far it causes only problems.

michal-kubicki avatar Jan 01 '20 16:01 michal-kubicki

Two fast Ctrl+Space, aka Ctrl+Space+Space (like Shift-Shift) works on my machine with 0.7.8 though.

Could you please explain how is this an improvement?

Yep, reducing noise in simple completion.

VladRassokhin avatar May 17 '20 21:05 VladRassokhin