After switching DX orgs and rebuilding caches, I’m stuck in state where I cannot successfully build the OST. At this point I’ve run into the endless “updating indices…” issue (https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/1584/ide-locks-up-or-never-completes-indices and https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/issues/1576/updating-indices-does-not-stop), so I’ve followed the steps in those threads. Specifically, I have:
- File → Invalidate Caches and Restart.
- Tools → Illuminated Cloud → Configure Project… → Rebuild Caches and Indices
- This seems to get stuck at “updating indices…”, so I gave it a few minutes, and restarted IntelliJ.
- After the restart, Tools → Illuminated Cloud → Configure Project… still shows no OST, and features like completion and Go To Declaration do no work.
Also, idea.log is full of exceptions of the form:
ERROR - tellij.psi.PsiReferenceService - IdeaLoggingEvent[message=Reference element is not the same element for which references were queried, throwable=java.lang.RuntimeException: Element: com.intellij.psi.impl.source.PsiPlainTextFileImpl; reference: com.illuminatedcloud.intellij.psi.reference.ApexDeclarationReference; reference element: com.intellij.psi.impl.source.tree.PsiPlainTextImpl
I believe my IJ and IC are latest versions:
IntelliJ IDEA 2020.1.1 (Community Edition)
Build #IC-201.7223.91, built on April 30, 2020
Runtime version: 11.0.6+8-b765.40 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
GC: ParNew, ConcurrentMarkSweep
Non-Bundled Plugins: String Manipulation, com.illuminatedcloud2.intellij, com.potterhsu.jsonviewer, net.seesharpsoft.intellij.plugins.csv