Error in SonarLint for IntelliJ sfasdgfasdfa

Environment:

  • Java: JetBrains s.r.o. 17.0.8.1
  • OS: Linux amd64
  • IDE: CLion 2023.3 EAP
  • SonarLint: 9.0.0.75308
c.ij.oa.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[AWT-EventQueue-0,6,main] 318558004 (EventQueue.isDispatchThread()=true)
SystemEventQueueThread: (same)
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:149)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:107)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:1015)
	at c.ij.oa.fileEditor.impl.FileDocumentManagerBase.getDocument(FileDocumentManagerBase.java:47)
	at c.ij.oa.editor.impl.RangeMarkerImpl.getDocument(RangeMarkerImpl.java:138)
	at c.ij.oa.editor.impl.RangeMarkerImpl.getDocument(RangeMarkerImpl.java:25)
	at o.sl.ij.ui.nodes.IssueNode.issueCoordinates(IssueNode.java:153)
	at o.sl.ij.ui.nodes.IssueNode.render(IssueNode.java:94)
	at o.sl.ij.ui.tree.TreeCellRenderer.customizeCellRenderer(TreeCellRenderer.java:37)
	at c.ij.ui.ColoredTreeCellRenderer.rendererComponentInner(ColoredTreeCellRenderer.java:125)
	at c.ij.ui.ColoredTreeCellRenderer.getTreeCellRendererComponent(ColoredTreeCellRenderer.java:57)
	at c.ij.ui.tree.ui.DefaultTreeUI.getRenderer(DefaultTreeUI.java:191)
	at c.ij.ui.tree.ui.DefaultTreeUI.paint(DefaultTreeUI.java:331)
	at java.desktop/javax.swing.plaf.ComponentUI.update(ComponentUI.java:161)

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.