Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 10 amd64
  • 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] 1105882573 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 854833694
	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.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:770)
	at c.ij.util.indexing.FileBasedIndexEx.processExceptions(FileBasedIndexEx.java:296)
	at c.ij.util.indexing.FileBasedIndexEx.getFileData(FileBasedIndexEx.java:188)
	at c.ij.util.indexing.FileBasedIndexEx.getSingleEntryIndexData(FileBasedIndexEx.java:209)
	at c.ij.psi.stubs.StubTreeLoaderImpl.readFromVFile(StubTreeLoaderImpl.java:116)
	at c.ij.psi.stubs.StubTreeLoaderImpl.readOrBuild(StubTreeLoaderImpl.java:45)
	at c.ij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:630)
	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)

2 posts were merged into an existing topic: Error in SonarLint for IntelliJ 10.4.2 - RuntimeExceptionWithAttachments: Read access is allowed