Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: IntelliJ IDEA 2024.1
  • SonarLint: 10.4.2.78113
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-vfs-events-notifier,6,main] 318955441 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1709504805
	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.PsiFileImpl.assertReadAccessAllowed(PsiFileImpl.java:182)
	at c.ij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:617)
	at c.ij.psi.impl.source.PsiFileImpl.getGreenStubTree(PsiFileImpl.java:952)
	at c.ij.psi.impl.source.PsiFileImpl.getGreenStub(PsiFileImpl.java:607)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.getGreenJSFileStub(JSFileBaseImpl.java:65)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.getCachedData(JSFileBaseImpl.java:52)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.getTestFileType(JSFileBaseImpl.java:124)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.isTestFile(JSFileBaseImpl.java:119)
	at c.ij.javascript.testFramework.JsTestFileIndexingHandler.isTestFile(JsTestFileIndexingHandler.java:92)
	at c.ij.javascript.testing.JsTestSourcesFilter.isTestSource(JsTestSourcesFilter.java:12)

Hey there.

Once is enough. :slight_smile: No need to keep posting these. You can follow along on Error in SonarLint for IntelliJ 10.4.2 - RuntimeExceptionWithAttachments: Read access is allowed