Error in SonarLint for IntelliJ - Slow operations are prohibited on EDT

Environment:

  • Java: JetBrains s.r.o. 17.0.8.1
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.3 EAP
  • SonarLint: 9.1.0.75538
java.lang.Throwable: Slow operations are prohibited on EDT. See SlowOperations.assertSlowOperationsAreAllowed javadoc.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.util.SlowOperations.assertSlowOperationsAreAllowed(SlowOperations.java:101)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:130)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.getFileInfo(WorkspaceFileIndexDataImpl.kt:75)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.getFileInfo(WorkspaceFileIndexImpl.kt:247)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.findFileSetWithCustomData(WorkspaceFileIndexImpl.kt:230)
	at c.ij.oa.roots.impl.ProjectFileIndexImpl.getModuleForFile(ProjectFileIndexImpl.java:97)
	at c.ij.oa.roots.impl.ProjectFileIndexImpl.getModuleForFile(ProjectFileIndexImpl.java:90)
	at o.sl.ij.ui.FindingDetailsPanel.show(FindingDetailsPanel.kt:75)
	at o.sl.ij.ui.AbstractIssuesPanel.updateOnSelect(AbstractIssuesPanel.java:321)
	at o.sl.ij.ui.AbstractIssuesPanel.issueTreeSelectionChanged(AbstractIssuesPanel.java:297)
	at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:3021)
	at java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3522)
	at java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:650)
	at c.ij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:665)

Hey there.

We are aware of this issue and we have this ticket on our side regarding this topic.

If you’d like to avoid having such issues while we are working on this, please downgrade to the latest non-EAP version of your IDE.

Thank you for using SonarLint :sonarlint: