VladRassokhin / intellij-hcl

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

Unresponsive typing when editing Terraform configuration #264

Closed hhtpcd closed 4 years ago

hhtpcd commented 4 years ago

Prerequisites

Installation details

Terraform Configuration Files

module "gke" {
  source = "terraform-google-modules/kubernetes-engine/google//modules/private-cluster"
  version = "~> 4.1"
  ip_range_pods = ""
  ip_range_services = ""
  name = ""
  network = ""
  project_id = ""
  region = ""
  subnetwork = ""
}

provider "google" {
  version = "~> 2.12.0"
  region  = "europe-west1"
}

provider "google-beta" {
  version = "~> 2.12.0"
  region  = "europe-west1"
}

Expected Behavior

Editing text is smooth and responsive.

Actual Behavior

Editing text is unresponsive and often pauses/freezes. Checking Goland Activity Monitor window it shows a spike in CPU for HCL plugin during pauses.

This happens when no other plugins are installed, other than the HCL plugin. Uninstalling HCL plugin restores normal text editing behaviour.

Have created a video to demonstrate

https://www.dropbox.com/s/ljru5kom9iqh4j6/goland_hcl_slow_typing_2019-10-08.mov?dl=0

Steps to Reproduce

  1. Create new project
  2. Paste Terraform config from above
  3. Edit config
VladRassokhin commented 4 years ago

Thanks for reporting, will try to fix ASAP. Will be available in 0.7.7