Error in SonarLint for IntelliJ for Rider 2024.1 EAP 5

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: JetBrains Rider 2024.1 EAP 5
  • SonarLint: 10.3.0.77475
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] 746090188 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1979288915
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:156)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:912)
	at c.ij.psi.impl.source.tree.TreeElement.assertReadAccessAllowed(TreeElement.java:421)
	at c.ij.psi.impl.source.tree.CompositeElement.textToCharArray(CompositeElement.java:234)
	at c.ij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:217)
	at c.ij.psi.impl.source.tree.CompositeElement.getChars(CompositeElement.java:229)
	at c.ij.lang.javascript.frameworks.modules.JSRequireFrameworkIndexHandler.shouldCreateStubForCallExpression(JSRequireFrameworkIndexHandler.java:25)
	at c.ij.lang.javascript.psi.impl.JSCallExpressionImpl.shouldCreateStub(JSCallExpressionImpl.java:148)
	at c.ij.lang.javascript.types.JSCallExpressionElementType.shouldCreateStub(JSCallExpressionElementType.java:43)
	at c.ij.lang.javascript.psi.stubs.impl.JSStubIndexingUtils.isInStubTree(JSStubIndexingUtils.java:112) ```

Hi,

Would you mind sharing the circumstances under which you encounter this, please?

 
Thx,
Ann

I was starting up my F# project.

1 Like

Hi @ChukwumaA, thanks for your report.

By chance, if you still have the full stack trace, could you share it with us? Same if it ever happens again, it would help us find the origin of this issue.

Okay, will do.

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: JetBrains Rider 2024.1 EAP 7
  • SonarLint: 10.3.0.77475
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] 1519898822 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 1163002433
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:156)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:912)
	at c.ij.psi.impl.source.tree.TreeElement.assertReadAccessAllowed(TreeElement.java:421)
	at c.ij.psi.impl.source.tree.CompositeElement.textToCharArray(CompositeElement.java:234)
	at c.ij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:217)
	at c.ij.javascript.microservices.HttpClientIndexingHandler.functionIsCallingHttp(HttpClientIndexingHandler.kt:32)
	at c.ij.javascript.microservices.HttpClientIndexingHandler.shouldCreateStubForCallExpression(HttpClientIndexingHandler.kt:35)
	at c.ij.lang.javascript.psi.impl.JSCallExpressionImpl.shouldCreateStub(JSCallExpressionImpl.java:148)
	at c.ij.lang.javascript.types.JSCallExpressionElementType.shouldCreateStub(JSCallExpressionElementType.java:43)
	at c.ij.lang.javascript.psi.stubs.impl.JSStubIndexingUtils.isInStubTree(JSStubIndexingUtils.java:112)