Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X x86_64
  • 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] 437375484 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1994129799
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:180)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:131)
	at c.ij.oa.fileEditor.FileDocumentManager.getDocument(FileDocumentManager.java:60)
	at c.ij.psi.AbstractFileViewProvider.getDocument(AbstractFileViewProvider.java:170)
	at c.ij.psi.AbstractFileViewProvider$VirtualFileContent.getText(AbstractFileViewProvider.java:446)
	at c.ij.psi.AbstractFileViewProvider.getContents(AbstractFileViewProvider.java:151)
	at c.ij.psi.stubs.StubTreeLoaderImpl.lambda$build$1(StubTreeLoaderImpl.java:66)
	at c.ij.oa.vfs.newvfs.impl.VirtualFileImpl.computeWithPreloadedContentHint(VirtualFileImpl.java:88)
	at c.ij.psi.stubs.StubTreeLoaderImpl.build(StubTreeLoaderImpl.java:59)
	at c.ij.psi.stubs.StubTreeLoaderImpl.readOrBuild(StubTreeLoaderImpl.java:50)
	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)

Hi,

Welcome to the community and thanks for this report!

We’ve released 10.5. Can you upgrade and see if this is still replicable?

 
Thx,
Ann