IntelliJ IDEA locks up on format code Follow
This just started recently. With certain files (with no apparent pattern that I can tell) when I Reformat Code or Organize Imports it causes the entire IDE to completely lock up, hanging on a progress dialog. After a long while (minutes, maybe) it might recover. Other times I just give up waiting and force-quit. Example:
It happens only with certain files. With those files it happens every time. Other files work normally.
Another odd thing I've noticed in my project is an odd file that seems unable to be parsed for syntax. The file looks like this:
And in the file is valid TypeScript code like every other file (its less than 100 lines), but nothing is highlighted and no auto-completion/intellisense features work. Again this only started happening recently, even though this file is quite old (as the name says).
My project is a TypeScript 3.3.3333/React project.
I'm using:
IntelliJ IDEA 2018.2.7 (Ultimate Edition)
Build #IU-182.5107.41, built on November 26, 2018
JRE: 1.8.0_152-release-1248-b22 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.1
Please sign in to leave a comment.
Please update to IntelliJ IDEA 2018.3.5 available at http://www.jetbrains.com/idea/download/index.html.
If the issue persists, please report a bug at https://youtrack.jetbrains.com/issues/IDEA with the logs and the thread dumps attached (https://intellij-support.jetbrains.com/hc/articles/207241085, https://intellij-support.jetbrains.com/hc/articles/206544899).
Regarding the file type with no syntax highlighting, please see https://stackoverflow.com/a/13374653/104891.
Both issues fixed by both suggestions! Thanks.