Error in SonarLint for IntelliJ-1

Environment:

  • Java: JetBrains s.r.o. 17.0.7
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2023.1.3
  • SonarLint: 6.8.0.50884
java.lang.Throwable: Read access is allowed from inside read-action (or EDT) only (see c.ij.oa.application.Application.runReadAction())
Current thread: Thread[ApplicationImpl pooled thread 24,4,main] 1116511002 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 137520687
	at c.ij.oa.diagnostic.Logger.error(Logger.java:202)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1004)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:127)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.getFileInfo(WorkspaceFileIndexDataImpl.kt:70)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.getFileInfo(WorkspaceFileIndexImpl.kt:220)
	at c.ij.oa.roots.impl.ProjectFileIndexImpl.isExcluded(ProjectFileIndexImpl.java:89)
	at o.sl.ij.analysis.LocalFileExclusions.checkProjectStructureExclusion(LocalFileExclusions.java:218)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$7(LocalFileExclusions.java:209)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:185)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:160)
	at o.sl.ij.analysis.AnalysisTask.filterAndGetByModule(AnalysisTask.java:192)
	at o.sl.ij.analysis.AnalysisTask.run(AnalysisTask.java:125)
	at c.ij.oa.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:429)

Hey there.

The latest version of SonarLint for IntelliJ is v8.4.0 – can you upgrade and see if the issue persists?