Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Windows 10 amd64
  • IDE: IntelliJ IDEA 2024.2.3
  • SonarLint: 10.6.2.78685
java.lang.Throwable: o.sl.ij.actions.ReopenIssueAction <clinit> requests c.ij.notification.NotificationGroupManager instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
	at c.ij.oa.diagnostic.Logger.error(Logger.java:376)
	at c.ij.serviceContainer.ComponentManagerImplKt.checkOutsideClassInitializer(ComponentManagerImpl.kt:1588)
	at c.ij.serviceContainer.ComponentManagerImplKt.getOrCreateInstanceBlocking(ComponentManagerImpl.kt:1557)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:746)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
	at c.ij.notification.NotificationGroupManager.getInstance(NotificationGroupManager.java:19)
	at o.sl.ij.actions.ReopenIssueAction.<clinit>(ReopenIssueAction.kt:58)
	at o.sl.ij.ui.tree.IssueTree.init(IssueTree.java:83)
	at o.sl.ij.ui.tree.IssueTree.<init>(IssueTree.java:56)
	at o.sl.ij.ui.AbstractIssuesPanel.createIssuesTree(AbstractIssuesPanel.java:139)
	at o.sl.ij.ui.AbstractIssuesPanel.<init>(AbstractIssuesPanel.java:78)
	at o.sl.ij.ui.CurrentFilePanel.<init>(CurrentFilePanel.java:78)
	at o.sl.ij.ui.SonarLintToolWindowFactory.addCurrentFileTab(SonarLintToolWindowFactory.java:105)
	at o.sl.ij.ui.SonarLintToolWindowFactory.createToolWindowContent(SonarLintToolWindowFactory.java:58)
	at c.ij.oa.wm.impl.ToolWindowImpl.createContentIfNeeded(ToolWindowImpl.kt:667)
	at c.ij.oa.wm.impl.ToolWindowImpl.getContentManager(ToolWindowImpl.kt:527)

Hi,

Welcome to the community and thanks for this report!

The current version of SonarLint for IntelliJ is 10.10. Could you upgrade and see if this is still replicable?

 
Thx,
Ann

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.