Error in SonarLint for IntelliJ Rider 2023.3 EAP 2

Environment:

  • Java: JetBrains s.r.o. 17.0.8.1
  • OS: Windows 11 amd64
  • IDE: JetBrains Rider 2023.3 EAP 2
  • 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:95)
	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 o.sl.ij.util.SonarLintAppUtils.lambda$findModuleForFile$0(SonarLintAppUtils.java:55)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely$lambda$4(ReadActionUtils.kt:70)
	at c.ij.oa.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:913)
	at c.ij.oa.application.ReadAction.compute(ReadAction.java:65)
	at o.sl.ij.common.ui.ReadActionUtils$Companion.computeReadActionSafely(ReadActionUtils.kt:69)
	at o.sl.ij.common.ui.ReadActionUtils.computeReadActionSafely(ReadActionUtils.kt)
	at o.sl.ij.util.SonarLintAppUtils.findModuleForFile(SonarLintAppUtils.java:51)
	at o.sl.ij.util.SonarLintAppUtils.getRelativePathForAnalysis(SonarLintAppUtils.java:80)

Hi @ChukwumaA,

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:

1 Like

Environment:

  • Java: JetBrains s.r.o. 17.0.8.1
  • OS: Mac OS X x86_64
  • 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)
1 Like

Hi @SiriusBlackPT,

Welcome to the community and thanks for this report!

Someone else beat you to it, so I’ve combined your thread with theirs, which includes the relevant ticket on our side and a workaround.

 
Ann