Just updated this morning to IntelliJ 2018.2.4 and Illuminated Cloud 188.8.131.52. I performed the following steps and got a hang-crash, reproducibly, several times:
- Find in Path... (Cmd+Shift+F) to find usages of an SObject Field.
- Click a usage to open containing file.
- Click in containing method's name and Find Usages (Cmd+Opt+F7) to confirm method isn't used anywhere.
- Highlight the entire method (via shift+DnArrow)
- Comment out method via Comment with Line Comment (Cmd+/).
The comment line-prefixes ("//") appear, but the code highlighting never changes to comment coloring, and IntelliJ becomes unresponsive. After a minute or two, IntelliJ shows the SBOD, and I have to hard-force-quit.
I have attached a log file. Of note: I found that my Debug Log config still contains some directives from another issue I submitted a while back; I chose to leave these lines in place:
#com.illuminatedcloud.intellij.completion.ApexCompletionContext #com.illuminatedcloud.intellij.completion.ApexCompletionRule #com.illuminatedcloud.intellij.completion.ApexVariantsCompletionRule #com.illuminatedcloud.intellij.completion.ApexSObjectFieldsCompletionRule #com.illuminatedcloud.intellij.psi.util.SObjectUtil
The end of the log shows a long exception stack trace, right below "2018-09-24 09:46:24,741 [ 111615] ERROR - j.psi.stubs.StubTreeLoaderImpl - Outdated stub in index:...", so after capturing the attached log, I restarted IntelliJ and did a Full Rebuild of the OST. This did NOT resolve the issue; the reproduction steps above still cause a full crash and the same Error & Exception in the log.
The attached idea.log was grabbed right after one of the freezes and before a restart. The zip is from "Compress Logs and Show in Finder" after the full OST rebuild/restart/reproduce error.