Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: JetBrains Rider 2024.1.2
  • SonarLint: 10.5.0.78339
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[sonarlint-editor-changes-notifier,6,main] 1022508909 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1571045650
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:180)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:131)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:908)
	at c.ij.psi.impl.source.tree.TreeElement.assertReadAccessAllowed(TreeElement.java:421)
	at c.ij.psi.impl.source.tree.LazyParseableElement.ensureParsed(LazyParseableElement.java:175)
	at c.ij.psi.impl.source.tree.LazyParseableElement.getFirstChildNode(LazyParseableElement.java:234)
	at c.ij.psi.impl.source.tree.LazyParseablePsiElement.getFirstChild(LazyParseablePsiElement.java:82)
	at c.ij.psi.PsiWalkingState$PsiTreeGuide.getFirstChild(PsiWalkingState.java:32)
	at c.ij.psi.PsiWalkingState$PsiTreeGuide.getFirstChild(PsiWalkingState.java:14)
	at c.ij.util.WalkingState.next(WalkingState.java:70)
	at c.ij.util.WalkingState.walkChildren(WalkingState.java:49)
	at c.ij.util.WalkingState.elementStarted(WalkingState.java:40)
	at c.ij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:62)
```emphasized text

Hello @mmhantea, thank you for your report!

Could you please update your SonarLint to version 10.6 and see if the issue is replicable?