Error in SonarLint for IntelliJ-2

Environment:

  • Java: JetBrains s.r.o. 17.0.7
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2023.1.4
  • 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 15,4,main] 128469927 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1224268432
	at c.ij.oa.diagnostic.Logger.error(Logger.java:202)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1002)
	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.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.findFileSetWithCustomData(WorkspaceFileIndexImpl.kt:205)
	at c.ij.oa.roots.impl.ProjectFileIndexImpl.getSourceRootForFile(ProjectFileIndexImpl.java:199)
	at o.sl.ij.analysis.LocalFileExclusions.checkFileInSourceFolders(LocalFileExclusions.java:137)
	at o.sl.ij.analysis.LocalFileExclusions.lambda$onTheFlyExclusionCheckers$3(LocalFileExclusions.java:197)
	at o.sl.ij.analysis.LocalFileExclusions.checkExclusionsFileByFile(LocalFileExclusions.java:183)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:158)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:87)

how i can fix that? :frowning:

Hello @tandat56,

your SonarLint version is very much outdated, please update to the newest version 8.4, and check if the error still persists.

Best,
Tobias