Error in SonarLint for IntelliJ sfasdgfasdfa


  • Java: JetBrains s.r.o.
  • OS: Linux amd64
  • IDE: CLion 2023.3 EAP
  • SonarLint:
c.ij.oa.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see for details
Current thread: Thread[AWT-EventQueue-0,6,main] 318558004 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(
	at c.ij.oa.fileEditor.impl.FileDocumentManagerBase.getDocument(
	at c.ij.oa.editor.impl.RangeMarkerImpl.getDocument(
	at c.ij.oa.editor.impl.RangeMarkerImpl.getDocument(
	at c.ij.ui.ColoredTreeCellRenderer.rendererComponentInner(
	at c.ij.ui.ColoredTreeCellRenderer.getTreeCellRendererComponent(
	at c.ij.ui.tree.ui.DefaultTreeUI.getRenderer(
	at c.ij.ui.tree.ui.DefaultTreeUI.paint(
	at java.desktop/javax.swing.plaf.ComponentUI.update(

Hi @cezaryece, thank you for your report!

We identified the issue and fixed it as part of the next SonarLint 9.1 release that is coming soon. The issue comes from the latest EAP version of IntelliJ which made some changes regarding the threading model. In the mean time, you can downgrade your CLion to a non-EAP version if you want to avoid such issues with SonarLint.