cmur2 / language-terraform

Terraform.io support for Atom
MIT License
49 stars 32 forks source link

language-terraform hangs #41

Open leonmax opened 5 years ago

leonmax commented 5 years ago

After installed language-terraform, it works. But when I restart my Atom, it hangs, totally irresponsive. After a couple of seconds, atom pop up the window "Editor is not responding". If I choose "Keep Waiting" it will keep hanging until the window pop again.

The problem resolved once I delete language-terraform with apm (I can't even open preference in Atom to remove it).

Please help.

leonmax commented 5 years ago

image

atom --version
Atom : 1.35.1 Electron: 2.0.18 Chrome : 61.0.3163.100 Node : 8.9.3

cmur2 commented 4 years ago

As this does not happen to all users I am unsure if https://github.com/cmur2/language-terraform/pull/43 is correct in stating that the large keywords.cson file is the culprit.

I do not have crashes on startup and I am currently using language-terraform v0.9.3 on Linux x64:

$ atom --version
Atom    : 1.43.0
Electron: 4.2.7
Chrome  : 69.0.3497.128
Node    : 10.11.0

Atom's timecop tells me that This package added 2ms to startup time. which is very fast. What is indeed slow (takes 2-3 seconds) is opening the Packages > Language Terraform settings view that renders a tremendous amount of keywords.

@leonmax it might be interesting which OS you use and which other packages you have installed?