Error in SonarLint for IntelliJ Another

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Linux amd64
  • IDE: IntelliJ IDEA 2023.3.4
  • SonarLint: 6.4.3.42541
c.ij.oa.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[ApplicationImpl pooled thread 6,4,main] 2026466823 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 2009759291
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:149)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1012)
	at c.ij.workspaceModel.core.fileIndex.impl.WorkspaceFileIndexDataImpl.ensureIsUpToDate(WorkspaceFileIndexDataImpl.kt:134)
	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.getSourceRootForFile(ProjectFileIndexImpl.java:134)
	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)

Hi,

Welcome to the community!

That version of SonarLint has a good bit of age on it at this point. The current version is 10.3.0.77475. Could you upgrade and see if this is still replicable?

 
Thx,
Ann