Error in SonarLint for IntelliJIDEA

Environment:

  • Java: JetBrains s.r.o. 17.0.6
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2023.1.2
  • SonarLint: 6.7.0.45926
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 49,4,main] 214802604 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 195171983
	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:216)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$defaultExclusionCheckers$6(LocalFileExclusions.java:207)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:158)
	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)

Hi @Smarth_Sharma,

Thank you for your report, your SonarLint version is quite outdated and this issue was fixed in a later version.

Could you please upgrade your SonarLint to the latest version (currently 8.3)?