[X] Ensure you have latest version of plugin installed
[X] Search for possible issue duplicates
Installation details
[X] IDE version (Help->About->Copy to Clipboard)
IntelliJ IDEA 2019.3.2 (Ultimate Edition)
Build #IU-193.6015.22, built on January 13, 2020
Licensed to Erik Swanson
Subscription is active until February 10, 2020
Runtime version: 11.0.5+10-b520.30 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.2
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Registry:
Non-Bundled Plugins: com.intellij.plugins.watcher, Pythonid, com.intellij.lang.puppet, eu.osimowicz.plugins.intellij.CodeBlocksSorter, mobi.hsz.idea.gitignore, net.sjrx.intellij.plugins.systemdunitfiles, org.intellij.plugins.hcl, org.intellij.scala, org.jetbrains.plugins.go-template, org.jetbrains.plugins.go, org.jetbrains.plugins.ruby, org.sylfra.idea.plugins.linessorter
[X] intellij-hcl plugin version (Settings->Plugins)
0.7.7
[X] Terraform version (terraform -v)
Terraform v0.12.18
Terraform Configuration Files
module "managed-instance-group" {
source = "GoogleCloudPlatform/managed-instance-group/google"
version = "1.1.15"
}
Exception
N/A
Expected Behavior
What should have happened?
After downloading the module (running terraform get), the source code of the module should have been treated as an External Library:
• The IDE should not treat the contents of .terraform/ as project files.
• The IDE should not include it when searching with a scope of Project.
• The IDE should protect it from unintentional modification.
• Each external module source × version should appear in the "External LIbraries" in the side drawer.
etc...
• Modules with a relative source within the project sources should not appear as External Libraries, but the copy/links to them created in .terraform/ by terraform get should still be excluded from the Project scope.
Actual Behavior
What actually happened?
Terraform module files downloaded by running terraform get are treated as project files.
Steps to Reproduce
Instantiate a module from an external source, such as above.
Run terraform init (or terraform get) to download the module.
Observe that the downloaded files in the .terraform/ directory are treated as project files.
Prerequisites
Installation details
Help->About->Copy to Clipboard
)Settings->Plugins
)0.7.7
terraform -v
)Terraform v0.12.18
Terraform Configuration Files
Exception
N/A
Expected Behavior
What should have happened?
After downloading the module (running
terraform get
), the source code of the module should have been treated as an External Library: • The IDE should not treat the contents of.terraform/
as project files. • The IDE should not include it when searching with a scope of Project. • The IDE should protect it from unintentional modification. • Each external module source × version should appear in the "External LIbraries" in the side drawer. etc... • Modules with a relative source within the project sources should not appear as External Libraries, but the copy/links to them created in.terraform/
byterraform get
should still be excluded from the Project scope.Actual Behavior
What actually happened?
Terraform module files downloaded by running
terraform get
are treated as project files.Steps to Reproduce
terraform init
(orterraform get
) to download the module..terraform/
directory are treated as project files.