Error in SonarLint for IntelliJ

Hello. IntellyJ has opened this post to report an error. Sorry in case this is an appropriate place to throw this (and let me know if that’s the case). Thanks!

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Mac OS X x86_64
  • IDE: IntelliJ IDEA 2024.2.3
  • SonarLint: 6.8.0.50884
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[#9468,ApplicationImpl pooled thread 17,4,main] 2122554212 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[#63,AWT-EventQueue-0,6,main] 699002654
	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: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)

Hey @Xavier_Fontanet, your SonarLint is very old. Could you please update it to the latest version? It should solve the issue, thank you!

Hi! Yes, I think that was the problem. Thank you very much!

1 Like

Super, thank you for letting us know! If you enjoy SonarLint for IntelliJ, do not hesitate to leave a review on our marketplace page, it’s always appreciated :sonarlint: