Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.3
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.2.1
  • SonarLint: 6.7.0.45926
c.ij.oa.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[#5083,ApplicationImpl pooled thread 700,4,main] 1199966825 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[#54,AWT-EventQueue-0,6,main] 179652550
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:177)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:129)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:915)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:153)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.getFileInfo(WorkspaceFileIndexDataImpl.kt:94)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexImpl.getFileInfo(WorkspaceFileIndexImpl.kt:260)
	at c.ij.oa.roots.impl.ProjectFileIndexImpl.isExcluded(ProjectFileIndexImpl.java:67)
	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)

Hey there!

This is a super old version. Can you upgrade to v10.9 of SonarLint for IntelliJ and see if the issue persists?

It does not. Thank you for the quick response.

I believe updating SonarLint should fix the issue; the latest version no longer contains this method.

If you face another issue, please provide more information (stack trace or error message); thank you.