Updating indices does not stop

Issue #1576 resolved
Kostas Vorilas created an issue

Noticed after upgrading Webstorm to 2020.1 and Illuminated Cloud to 2.1.1.3. If you click Generate Offiline Symbol Table, Updating Indices does not finish.

Official response

  • Scott Wells repo owner

    Francesco, can you please see if the following fixes it for you?

    1. Use File>Invalidate Caches / Restart to rebuild ALL caches and indices.
    2. Allow the IDE to restart and finish reindexing.
    3. Use Illuminated Cloud>Configure Project>Rebuild Caches & Indices.
    4. Allow the project to close and reopen and finish reindexing.
    5. If you still see the stuck indexing progress indicator, manually close and reopen the project one more time (I hate to even have to tell you to do this...).

    Let me know if you still see the issue after doing that.

Comments (45)

  1. Scott Wells repo owner

    I did see this once after updating and closing/reopening the project resolved it. I haven't seen it again since. Are you seeing it consistently?

  2. Scott Wells repo owner

    I take that back. I did just reproduce this easily. It seems to be a JetBrains issue. The workaround...as much as it stinks to need one...is to close/reopen the project one more time. I'll file a bug with JetBrains.

  3. Kostas Vorilas reporter

    I can reproduce it: Click Regenerate Offiline Table → Full → Rebuild Caches and Indices → Yes. Then it starts indexing and never stops.

  4. Scott Wells repo owner

    Yep, I think perhaps we crossed streams a bit. I was able to reproduce this no problem and it appears to be an issue in the base IDE/plugin SDK introduced with 2020.1. I've filed a case with JetBrains accordingly.

  5. Francesco Pitzalis

    This affects me as well. May I suggest to raise the priority to JetBrains? I can’t work properly.

  6. Francesco Pitzalis

    Actually I face the same problem also on project load, every time now. So I’m not sure it’s the same issue anymore. Here’s a stacktrace, should I open a new ticket?

    2020-04-05 15:11:21,124 [331341741]  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
        at com.intellij.psi.PsiReferenceServiceImpl.assertReferencesHaveSameElement(PsiReferenceServiceImpl.java:47)
        at com.intellij.psi.PsiReferenceServiceImpl.getReferences(PsiReferenceServiceImpl.java:23)
        at com.illuminatedcloud.intellij.search.FilteringRequestResultProcessor.processTextOccurrence(SourceFile:44)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl$3.lambda$execute$0(PsiSearchHelperImpl.java:778)
        at com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:85)
        at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsAtOffsets(LowLevelSearchUtil.java:189)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl$3.execute(PsiSearchHelperImpl.java:774)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:237)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:228)
        at com.intellij.openapi.application.ReadActionProcessor.lambda$process$0(ReadActionProcessor.java:28)
        at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:821)
        at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:71)
        at com.intellij.openapi.application.ReadActionProcessor.process(ReadActionProcessor.java:28)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processCandidates$14(PsiSearchHelperImpl.java:734)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processVirtualFile$6(PsiSearchHelperImpl.java:421)
        at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:992)
        at com.intellij.openapi.application.ex.ApplicationUtil.tryRunReadAction(ApplicationUtil.java:25)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl.processVirtualFile(PsiSearchHelperImpl.java:405)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processPsiFileRoots$2(PsiSearchHelperImpl.java:311)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$null$3(PsiSearchHelperImpl.java:368)
        at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:167)
        at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:157)
        at com.intellij.psi.impl.search.PsiSearchHelperImpl.lambda$processFilesConcurrentlyDespiteWriteActions$4(PsiSearchHelperImpl.java:367)
        at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:148)
        at com.intellij.concurrency.ApplierCompleter.tryToExecAllList(ApplierCompleter.java:227)
        at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:155)
        at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:997)
        at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:585)
        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:531)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
        at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116)
        at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:96)
        at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:167)
        at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:157)
        at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:96)
        at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)
    ] 
    

  7. Scott Wells repo owner

    Francesco, can you please see if the following fixes it for you?

    1. Use File>Invalidate Caches / Restart to rebuild ALL caches and indices.
    2. Allow the IDE to restart and finish reindexing.
    3. Use Illuminated Cloud>Configure Project>Rebuild Caches & Indices.
    4. Allow the project to close and reopen and finish reindexing.
    5. If you still see the stuck indexing progress indicator, manually close and reopen the project one more time (I hate to even have to tell you to do this...).

    Let me know if you still see the issue after doing that.

  8. Scott Wells repo owner

    Okay, glad to hear. I think I'll bump the version numbers on all of IC's indices in the next build to force them to rebuild completely. Hopefully this will ensure that other users don't have the same problem going forward. My guess is that with 2020.1 being a significant base IDE update, something's getting into a wonky state.

  9. Scott Wells repo owner

    I was hoping that a full index rebuild would help with this, and while it probably does help with the specific issue that Francesco was seeing, it doesn't resolve the persistent "Updating indices" progress indicator. I've posted a thread dump from the IDE to the JetBrains YouTrack issue showing the thread state when things are in that state. I can see three active progress indicator threads, so something must be getting stuck/orphaned in the case IDE. Hopefully they'll figure out this quickly and issue a patch. As I mentioned originally, the (ugly) workaround is closing/reopening the project once explicitly.

  10. Scott Wells repo owner

    JetBrains just submitted a fix for this for (presumably) the next patch to 2020.1. I'm resolving this issue since it's a bug in the base IDE.

  11. Luke Kozakewycz

    Are you still getting this issue? I have 2020.1 and I have been “indexing” for the last 5 hours. 😞 Tried the workarounds, but I can’t get around it.

  12. Scott Wells repo owner

    Luke, I've not heard about the more extensive issue you're having. Can you restart the IDE so that it reproduces the issue from a fresh start then send me the resulting idea.log files for review?

  13. Luke Kozakewycz

    Sure. This was after pausing the indexing:

    2020-04-27 15:48:01,445 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
    2020-04-27 15:48:01,506 [     61]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-201.6668.121, 08 Apr 2020 15:17) 
    2020-04-27 15:48:01,517 [     72]   INFO -        #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64) 
    2020-04-27 15:48:01,517 [     72]   INFO -        #com.intellij.idea.Main - JRE: 11.0.6+8-b765.25 (JetBrains s.r.o) 
    2020-04-27 15:48:01,518 [     73]   INFO -        #com.intellij.idea.Main - JVM: 11.0.6+8-b765.25 (OpenJDK 64-Bit Server VM) 
    2020-04-27 15:48:01,523 [     78]   INFO -        #com.intellij.idea.Main - JVM Args: exit -Xms128m -Xmx2013m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=C:\Users\Luke\AppData\Roaming\JetBrains\IntelliJIdea2020.1\idea64.exe.vmoptions -Djava.library.path=C:\Program Files\JetBrains\IntelliJ IDEA 2020.1\jbr\\bin;C:\Program Files\JetBrains\IntelliJ IDEA 2020.1\jbr\\bin\server -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IntelliJIdea2020.1 -XX:ErrorFile=C:\Users\Luke\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\Luke\java_error_in_idea.hprof 
    2020-04-27 15:48:01,523 [     78]   INFO -        #com.intellij.idea.Main - Locale=en_GB JNU=Cp1252 file.encoding=Cp1252 
    2020-04-27 15:48:02,475 [   1030]   INFO -        #com.intellij.idea.Main - JNA library (64-bit) loaded in 1002 ms 
    2020-04-27 15:48:04,407 [   2962]   INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational 
    2020-04-27 15:48:06,347 [   4902]   WARN - llij.ide.plugins.PluginManager - Problems found loading plugins:
      The IntelliJ Light Theme (id=com.jetbrains.lightThemePreview, path=~\AppData\Roaming\JetBrains\IntelliJIdea2020.1\plugins\IntelliJLightTheme.jar, version=1.0.2) plugin is incompatible (reason: until build 201.0 < IU-201.6668.121, target build range is 191.0 to 201) 
    2020-04-27 15:48:06,393 [   4948]   INFO - ntellij.idea.ApplicationLoader - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@54d7a96[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@6f8c72a0 
    2020-04-27 15:48:06,467 [   5022]   INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: IDEA CORE (201.6668.121), com.intellij.platform.images (201.6668.121), JetBrains Repository Search (201.6668.121), HTML Tools (201.6668.121), Perforce (201.6668.121), Refactor-X (201.6668.121), Subversion (201.6668.121), XPathView + XSLT (201.6668.121), XSLT Debugger (201.6668.121), Smali Support (201.6668.121), IDE Settings Sync (201.6668.121), Configuration Script (201.6668.121), Copyright (201.6668.121), CSS (201.6668.121), W3C Validators (201.6668.121), Haml (201.6668.121), Less (201.6668.121), Sass (201.6668.121), Stylus (201.6668.121), Java (201.6668.121), Bytecode Viewer (201.6668.121), CFML (201.6668.121), Git (201.6668.121), ChangeReminder (201.6668.121), Next File Prediction (201.6668.121), Performance Testing (201.6668.121), JUnit (201.6668.121), Task Management (201.6668.121), GitHub (201.6668.121), Time Tracking (201.6668.121), IntelliLang (201.6668.121), TestNG (201.6668.121), Code Coverage for Java (201.6668.121), Emma (201.6668.121), Java HTTP Clients (201.6668.121), Markdown (201.6668.121), ZKM-Unscramble (201.6668.121), Spring AOP/@AspectJ (201.6668.121), Dependency Structure Matrix (201.6668.121), Java IDE Customization (201.6668.121), Java Stream Debugger (201.6668.121), Eclipse Interoperability (201.6668.121), Java Bytecode Decompiler (201.6668.121), Gradle (201.6668.121), Windows 10 Light Theme (201.6668.121), Properties (201.6668.121), Ant (201.6668.121), Groovy (201.6668.121), Maven (201.6668.121), OSGi (201.6668.121), AspectJ (201.6668.121), Gradle-Java (201.6668.121), Frameworks Starters (201.6668.121), Reactive Streams (Reactor, RxJava) (201.6668.121), Gradle-Maven (201.6668.121), JavaFX (201.6668.121), UML (201.6668.121), Gradle Extension (201.6668.121), Database Tools and SQL (201.6668.121), Java SQL Libraries (201.6668.121), Persistence Frameworks (201.6668.121), Play Framework (201.6668.121), Guice (201.6668.121), Java Internationalization (201.6668.121), UI Designer (201.6668.121), Plugin DevKit (201.6668.121), Velocity (201.6668.121), Resource Bundle Editor (201.6668.121), Machine Learning Code Completion (201.6668.121), ASP (201.6668.121), FTP/SFTP Connectivity (ex. Remote Hosts Access) (201.6668.121), Gherkin (201.6668.121), Cucumber for Java (201.6668.121), Cucumber for Groovy (201.6668.121), Mercurial (201.6668.121), EditorConfig (201.6668.121), Terminal (201.6668.121), SSH Remote Run (201.6668.121), WSL Support Framework (201.6668.121), Shell Script (201.6668.121), TextMate bundles (201.6668.121), YAML (201.6668.121), Java EE: EJB, JPA, Servlets (201.6668.121), Java EE: Contexts and Dependency Injection (201.6668.121), Helidon (201.6668.121), Java EE: Batch Applications (201.6668.121), Docker (201.6668.121), GlassFish (201.6668.121), WildFly (201.6668.121), JSR45 (201.6668.121), Jetty (201.6668.121), Resin (201.6668.121), Tomcat and TomEE (201.6668.121), WebSphere (201.6668.121), WebLogic (201.6668.121), Java EE: Bean Validation (201.6668.121), Hibernate (201.6668.121), Java EE: JMS, JSON Processing, Concurrency, Transaction (201.6668.121), Application Servers View (201.6668.121), Java EE: WebSockets (201.6668.121), JBoss Frameworks Base (201.6668.121), Drools (201.6668.121), Arquillian (201.6668.121), Java Server Pages (JSP) (201.6668.121), JBoss jBPM (201.6668.121), Tapestry (201.6668.121), Java EE: RESTful Web Services (JAX-RS) (201.6668.121), Quarkus (201.6668.121), OpenAPI Specifications (201.6668.121), Maven Extension (201.6668.121), Grazie (201.6668.121), JavaScript and TypeScript (201.6668.121), Flash/Flex (201.6668.121), Java EE: Java Server Faces (201.6668.121), Spring (201.6668.121), Virgo/dmServer (201.6668.121), FreeMarker (201.6668.121), Struts 2 (201.6668.121), Spring Batch (201.6668.121), Spring Data (201.6668.121), Spring Messaging (201.6668.121), Spring WebSocket (201.6668.121), Spring OSGi (201.6668.121), Spring Security (201.6668.121), Spring Integration Patterns (201.6668.121), Thymeleaf (201.6668.121), Java EE: Web Services (JAX-WS) (201.6668.121), Spring Web Services (201.6668.121), Grails (201.6668.121), JBoss Seam (201.6668.121), JBoss Seam Pageflow (201.6668.121), JBoss Seam Pages (201.6668.121), JavaScript Debugger (201.6668.121), GWT (201.6668.121), Node.js (201.6668.121), Android (10.3.6 RC 1), Spy-js (201.6668.121), JavaScript Intention Power Pack (201.6668.121), CoffeeScript (201.6668.121), HTTP Client (201.6668.121), Spring MVC (201.6668.121), Spring Web Flow (201.6668.121), TSLint (201.6668.121), Angular and AngularJS (201.6668.121), Microservices Application Configuration (201.6668.121), Spring Boot (201.6668.121), Micronaut (201.6668.121), Settings Repository (201.6668.121) 
    2020-04-27 15:48:06,467 [   5022]   INFO - llij.ide.plugins.PluginManager - Loaded custom plugins: Batch Scripts Support (1.0.12), CMD Support (1.0.5), .env files support (2020.1), Kotlin (1.3.72-release-IJ2020.1-1), Handlebars/Mustache (201.6668.125), Illuminated Cloud 2 (2.1.1.8) 
    2020-04-27 15:48:06,951 [   5506]   INFO - cloudConfig.CloudConfigManager - === BeforeStart.StreamProvider === 
    2020-04-27 15:48:07,265 [   5820]   INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=1960 
    2020-04-27 15:48:07,280 [   5835]   INFO - tellij.util.io.FileChannelUtil - un-interruptible FileChannel-s will be used for indexes 
    2020-04-27 15:48:07,691 [   6246]   INFO - til.net.ssl.CertificateManager - Default SSL context initialized 
    2020-04-27 15:48:07,958 [   6513]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=13, fontScale=1.0; restored: fontSize=13, fontScale=1.0 
    2020-04-27 15:48:07,974 [   6529]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
    2020-04-27 15:48:08,007 [   6562]   INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342 
    2020-04-27 15:48:08,208 [   6763]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
    2020-04-27 15:48:08,215 [   6770]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
    2020-04-27 15:48:08,221 [   6776]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
    2020-04-27 15:48:08,227 [   6782]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
    2020-04-27 15:48:08,240 [   6795]   INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0 
    2020-04-27 15:48:08,280 [   6835]   INFO - gs.impl.UpdateCheckerComponent - channel: release 
    2020-04-27 15:48:08,504 [   7059]   INFO - cloudConfig.CloudConfigManager - === Start.updateConnection === 
    2020-04-27 15:48:08,578 [   7133]   INFO - cloudConfig.CloudConfigManager - === Start: JBA_CONNECTED (74ms) === 
    2020-04-27 15:48:08,584 [   7139]   INFO - cloudConfig.CloudConfigManager - === doConnect === 
    2020-04-27 15:48:08,584 [   7139]   INFO - cloudConfig.CloudConfigManager - === getConnectionState === 
    2020-04-27 15:48:08,953 [   7508]   INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2020.1\bin\fsnotifier64.exe 
    2020-04-27 15:48:09,232 [   7787]   INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational. 
    2020-04-27 15:48:09,801 [   8356]   INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files === 
    2020-04-27 15:48:11,480 [  10035]   INFO - cloudConfig.CloudConfigManager - org.xml.sax.SAXParseException; lineNumber: 22097; columnNumber: 44; XML document structures must start and end within the same entity. 
    java.io.IOException: org.xml.sax.SAXParseException; lineNumber: 22097; columnNumber: 44; XML document structures must start and end within the same entity.
        at com.intellij.ide.plugins.PluginsMetaLoader.parsePluginList(PluginsMetaLoader.kt:136)
        at com.intellij.ide.plugins.RepositoryHelper.lambda$loadPlugins$0(RepositoryHelper.java:118)
        at com.intellij.ide.plugins.PluginsMetaLoader$readOrUpdateFile$2.process(PluginsMetaLoader.kt:102)
        at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:516)
        at com.intellij.util.io.HttpRequests.process(HttpRequests.java:498)
        at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:56)
        at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:349)
        at com.intellij.ide.plugins.PluginsMetaLoader.readOrUpdateFile(PluginsMetaLoader.kt:87)
        at com.intellij.ide.plugins.RepositoryHelper.loadPlugins(RepositoryHelper.java:113)
        at com.intellij.ide.plugins.RepositoryHelper.loadPlugins(RepositoryHelper.java:86)
        at com.intellij.ide.plugins.RepositoryHelper.loadPlugins(RepositoryHelper.java:81)
        at com.intellij.cloudConfig.CloudConfigManager.lambda$getRepositoryPlugins$44(CloudConfigManager.java:1866)
        at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
    Caused by: org.xml.sax.SAXParseException; lineNumber: 22097; columnNumber: 44; XML document structures must start and end within the same entity.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.endEntity(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
        at org.apache.xerces.impl.XMLEntityScanner.peekChar(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCDATASection(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at com.intellij.ide.plugins.PluginsMetaLoader.parsePluginList(PluginsMetaLoader.kt:131)
        ... 16 more
    2020-04-27 15:48:16,807 [  15362]   INFO - leBasedIndexDataInitialization - Initialization done: 8863 
    2020-04-27 15:48:17,648 [  16203]   INFO - exImpl$StubIndexInitialization - Initialization done: 838 
    2020-04-27 15:50:41,337 [ 159892]   INFO - cloudConfig.CloudConfigManager - === Start.updateConnection === 
    2020-04-27 15:50:41,341 [ 159896]   INFO - cloudConfig.CloudConfigManager - === doConnect === 
    2020-04-27 15:50:41,341 [ 159896]   INFO - cloudConfig.CloudConfigManager - === getConnectionState === 
    2020-04-27 15:50:44,867 [ 163422]   INFO - BridgeProjectLifecycleListener - Using legacy project model to open project 
    2020-04-27 15:50:45,217 [ 163772]   INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [<Project>] 
    2020-04-27 15:50:45,398 [ 163953]   INFO - rojectCodeStyleSettingsManager - Loading Project code style 
    2020-04-27 15:50:45,440 [ 163995]   INFO - eStyle.CustomCodeStyleSettings - Loaded com.intellij.psi.formatter.xml.XmlCodeStyleSettings 
    2020-04-27 15:50:45,441 [ 163996]   INFO - eStyle.CustomCodeStyleSettings - Loaded com.illuminatedcloud.intellij.formatter.ApexCodeStyleSettings 
    2020-04-27 15:50:45,449 [ 164004]   INFO - eStyle.CommonCodeStyleSettings - Loaded Apex common code style settings 
    2020-04-27 15:50:45,450 [ 164005]   INFO - eStyle.CommonCodeStyleSettings - Loaded Java common code style settings 
    2020-04-27 15:50:45,588 [ 164143]   WARN - ij.coverage.ApexCoverageEngine - Code coverage report generation is unavailable because jetbrains.coverage.report.html.HTMLReportBuilder and/or freemarker.template.Configuration could not be found in the classpath. 
    2020-04-27 15:50:45,589 [ 164144]   WARN - ij.coverage.ApexCoverageEngine - To resolve this issue add coverage-report.jar and freemarker.jar to the application or plugin classpath. 
    2020-04-27 15:50:45,599 [ 164154]   INFO - ellij.license.LicenseValidator - Initializing Illuminated Cloud 2.1.1.8 (20200422092634). 
    2020-04-27 15:50:45,599 [ 164154]   INFO - ellij.license.LicenseValidator - Validating certificate. 
    2020-04-27 15:50:45,601 [ 164156]   INFO - ellij.license.LicenseValidator - Successfully validated certificate. 
    2020-04-27 15:50:45,601 [ 164156]   INFO - llij.license.SignedJarVerifier - Verifying application contents. 
    2020-04-27 15:50:46,114 [ 164669]   INFO - llij.license.SignedJarVerifier - Successfully verified application contents. 
    2020-04-27 15:50:46,114 [ 164669]   INFO - ellij.license.LicenseValidator - Initializing the licensing system. 
    2020-04-27 15:50:46,146 [ 164701]   INFO - ellij.license.LicenseValidator - Validating libraries. 
    2020-04-27 15:50:46,188 [ 164743]   INFO - ellij.license.LicenseValidator - Successfully validated libraries. 
    2020-04-27 15:50:47,249 [ 165804]   INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found 
    2020-04-27 15:50:48,158 [ 166713]   INFO - llij.database.util.SqlDialects - SQL dialects initialized in 1 ms 
    2020-04-27 15:50:49,626 [ 168181]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 1588ms; general responsiveness: ok; EDT responsiveness: ok 
    2020-04-27 15:50:50,132 [ 168687]   WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider 
    2020-04-27 15:50:52,459 [ 171014]   INFO -              PerformancePlugin - Performance Plugin is in silent mode 
    2020-04-27 15:50:52,714 [ 171269]   INFO - penapi.application.Experiments - Experimental features enabled for user: wsl.p9.support, wsl.p9.show.roots.in.file.chooser, inline.browse.button, linux.native.menu, recent.and.edited.files.together, show.create.new.element.in.popup, copy.reference.popup, new.large.text.file.viewer, property.value.inplace.editing 
    2020-04-27 15:50:53,247 [ 171802]   INFO - ge.ExternalProjectsDataStorage - Load external projects data in 6 millis (read time: 2) 
    2020-04-27 15:50:53,784 [ 172339]   INFO -  #git4idea.commands.GitHandler - [.] git version 
    2020-04-27 15:50:53,841 [ 172396]   INFO - pl.projectlevelman.NewMappings - Mapped Roots: 1 
    2020-04-27 15:50:53,868 [ 172423]   WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=com.android.tools.idea.sdk.AndroidSdks) 
    2020-04-27 15:50:54,308 [ 172863]   INFO -  #git4idea.commands.GitHandler - git version 2.11.0.windows.3 
    2020-04-27 15:50:54,542 [ 173097]   INFO - ProjectRootPostStartUpActivity - C:/Users/Luke/sfdx/lsx/.idea case-sensitivity: expected=false actual=false 
    2020-04-27 15:50:54,569 [ 173124]   INFO - ea.config.GitExecutableManager - Git version for C:\Program Files\Git\cmd\git.exe : 2.11.0 
    2020-04-27 15:50:54,733 [ 173288]   INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 2252ms; general responsiveness: 1/2 sluggish; EDT responsiveness: 1/1 sluggish 
    2020-04-27 15:50:57,423 [ 175978]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 7775ms; general responsiveness: 1/8 sluggish; EDT responsiveness: 1/5 sluggish, 1/5 very slow 
    2020-04-27 15:50:57,441 [ 175996]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 1683 files to update 
    2020-04-27 15:50:57,489 [ 176044]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Problems View) or icon jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202020.1/lib/icons.jar!/general/warning.svg 
    2020-04-27 15:50:57,536 [ 176091]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Anonymous Apex) or icon jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202020.1/lib/icons.jar!/debugger/console.svg 
    2020-04-27 15:50:57,538 [ 176093]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  SOQL Query) or icon jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202020.1/lib/icons.jar!/nodes/dataSchema.svg 
    2020-04-27 15:50:57,540 [ 176095]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Log Analyzer) or icon jar:file:/C:/Program%20Files/JetBrains/IntelliJ%20IDEA%202020.1/lib/icons.jar!/nodes/logFolder.svg 
    2020-04-27 15:51:07,193 [ 185748]   WARN - .diagnostic.PerformanceWatcher - UI was frozen for 5295ms, details saved to C:\Users\Luke\AppData\Local\JetBrains\IntelliJIdea2020.1\log\threadDumps-freeze-20200427-155106-IU-201.6668.121-WinNTFileSystem.list-5sec 
    2020-04-27 15:51:07,491 [ 186046]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 22973 ms 
    2020-04-27 15:51:59,559 [ 238114]   WARN - .diagnostic.PerformanceWatcher - UI was frozen for 5144ms, details saved to C:\Users\Luke\AppData\Local\JetBrains\IntelliJIdea2020.1\log\threadDumps-freeze-20200427-155159-IU-201.6668.121-IlluminatedCloudConnection.config-5sec 
    2020-04-27 15:52:04,366 [ 242921]   INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 41 ms, GraziConfig took 22 ms, ProjectJdkTable took 45 ms 
    2020-04-27 15:52:04,626 [ 243181]   INFO - rationStore.ComponentStoreImpl - Saving Project (name=lsx, containerState=ACTIVE, componentStore=C:\Users\Luke\sfdx\lsx) RunManager took 21 ms 
    2020-04-27 15:52:04,629 [ 243184]   INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 4579 ms 
    2020-04-27 15:53:59,906 [ 358461]   INFO - .script.IdeScriptEngineManager - javax.script.ScriptEngineManager initialized in 400 ms 
    2020-04-27 15:54:09,655 [ 368210]   INFO - j.ide.actions.RevealFileAction - Exit code 1 
    

  14. Scott Wells repo owner

    I'm honestly not seeing anything at all obvious there. So just to clarify, if you close and reopen the project, it continues to show as indexing?

  15. Luke Kozakewycz

    Yep. I’ve tried closing the project and re-opening it. I’ve tried re-installing IntelliJ. I’ve delete my offline symbol tables. I’ve excluded non-source directories. Invalidated the caches and so on.

    It just carries on “indexing”. I’m really stuck with it.

  16. Scott Wells repo owner

    That's really strange. And did you do the full cache rebuild using File>Invalidate Caches/Restart? I'm guessing you did, but I'm going to exhaust the options before going down another path. Also, does this happen with any project or just this one?

  17. Scott Wells repo owner

    Yeah, I figured as much. And is this specific to one project or the same across all projects?

  18. Scott Wells repo owner

    Okay. They just released a 2020.1.1 RC1 with quite a few fixes from 2020.1. Do you mind updating to it to see if it resolves this issue for you? My guess is that it won't since I still see the original issue with the project close/reopen workaround in that build, but let's try that before digging in further since this is almost certainly something with 2020.1 given that you never saw it prior to 2020.1.

    Go into Settings/Preferences>Appearance & Behavior>System Settings>Updates and change the drop-down to Early Access Program, then check for updates.

  19. Scott Wells repo owner

    Okay. Can you email me the latest thread dump from the same directory where you get idea.log? I'd like to see if there's anything obvious there. If not, you may need to file a support case with JetBrains, but before we go that route let me see what's going on inside that JVM.

  20. Scott Wells repo owner

    FYI, been working with Luke and it appears that he was experiencing a combination of the issue described here as well as the eventual performance degradation of force:org:list performance described in these release notes. By cleaning up stale/expired orgs and then running the same cache rebuild steps described here, things seem to be in good shape for him again.

  21. Scott Wells repo owner

    FYI, the original problem of seemingly continuous indexing appears to be resolved in 2020.1.1. If you're still experiencing this--or still having to apply the workaround of manually closing/reopening projects--please update and let me know if you continue to see the issue.

  22. Scott Wells repo owner

    Hmmm...is it the exact same issue where you rebuild your OST, allow the project to close and reopen, and it continues to show as indexing, then manually closing/reopening the project resolves it? If not, can you elaborate on the steps to reproduce?

  23. Kostas Vorilas reporter

    Similar as last time. Regenerate Offline Symbol → Full → Reload Project → Updating Indices

    Close and reopen does the trick but when I repeat the procedure, it is indexing endlessly.

  24. Scott Wells repo owner

    Okay, good to know. I'll check with JetBrains and see if the fix was in fact included in 2020.1.1. I wasn't able to reproduce it, but perhaps I was just getting lucky.

  25. Piotr Kożuchowski

    I have this issue when changing connection, but Invalidating Cache & Restart fixes this immediately.

  26. Scott Wells repo owner

    Yeah, it sounds like either the issue wasn't fixed or wasn't completely fixed in 2020.1.1. I'm going to follow up with JetBrains on it today. I'll post an update here when I have more information.

  27. Scott Wells repo owner

    FYI, I was able to reproduce this behavior by following a user's recommendation of changing the configured connection rather than just regenerating the OST or rebuilding caches & indices. I can see the exact same thread stuck in a progress indicator in the IDE (not going through IC at all). I'll follow up with JetBrains now.

  28. Scott Wells repo owner

    FYI, I just updated locally to 2020.1.2 Preview and the endless indexing issue does seem to be resolved. I've tried all of the use cases in which it occurred including switching project connections and the progress indicator no longer lingers interminably.

  29. Jonny Power (he/him)

    @Scott Wells I have been experiencing the same today.

    Normally when this happens I do the standard close / reopen project -> invalidate cache -> close/reopen until the indexing progresses at an acceptable rate.

    Today has been different, I've tried that many times but the indexing is extremely slow as it processes apex classes.

    I tried the preview 2020.1.2 as well and no luck, same issue. I'm probably going to have to leave it running overnight at this rate.

    Nothing obvious in logs, other than:

    2020-05-18 14:56:28,672 [  50448]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 13632ms; general responsiveness: 1/14 sluggish; EDT responsiveness: 2/14 sluggish, 3/14 very slow 
    2020-05-18 14:56:28,736 [  50512]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 106902 files to update 
    2020-05-18 14:57:54,646 [ 136422]   INFO - rationStore.ComponentStoreImpl - Saving appFileTypeManager took 15 ms 
    

    I did upgrade Illuminated Cloud before this started happening, so might be related to the latest version of IC2?

  30. Scott Wells repo owner

    Jonny, the most recent IC build had no indexing-related changes. Everything was around subscription management and caching of org metadata lists--but IC-specific caching, not IDE indexing/caching. Does this happen with all of your projects (or perhaps you just have one)?

  31. Jonny Power (he/him)

    Tried downgrading IC2 - same issue persists, so it isn't due to upgrading IC2.

    Yeah, other projects are suffering from the same issue as well.

  32. Jonny Power (he/him)

    There does appear to be something odd going on with the connection configuration however Snag_19cd880d.png

    EDIT: Yes, appeared to be related to the org configuration issue shown in screenshot above. I deleted all the entries there, refreshed SFDX connections, then everything started to unlock.

  33. Scott Wells repo owner

    Aha! Okay, that makes more sense, and what you're seeing there is a bug in the Salesforce CLI. You can learn more in #1606. Scroll to most recent comments because there have been several issues in the past two weeks' builds. And I can imagine that all of your connections being screwed up could lead to some bad behavior. I need to check in with the Salesforce CLI team, but it seems they've already resolved two of the four (or five?) issues that have been found, and I know they had a lead on at least one of the remaining major ones. Hopefully this week's build will squash as many of them as possible.

  34. Kostas Vorilas reporter

    @Scott Wells I have noticed the following: If a scratch Org is displayed under Org/Hub list, then indexing does not end. I will try to create steps to reproduce it. What I have found is that a scratch Org that is not created from the local machine, ends up in Org/Hub list. We have an environment that creates scratch orgs and then developers can pick them and use them locally.

  35. Luke Kozakewycz

    I have had the same since updating IntelliJ to the latest preview. I closed the IDE and ran sfdx force:org:list

    The next index took only a matter of 30-60 seconds.

  36. Log in to comment