Error in SonarLint for IntelliJ

Environment:

  • Java: JetBrains s.r.o. 21.0.4
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.2.3
  • SonarLint: 7.3.0.59206
java.lang.Throwable: o.sl.ij.issue.hotspot.SecurityHotspotShowRequestHandler <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.issue.hotspot.SecurityHotspotShowRequestHandler.<clinit>(SecurityHotspotShowRequestHandler.kt:115)
	at o.sl.ij.server.RequestProcessor.<init>(RequestProcessor.kt:45)
	at o.sl.ij.server.RequestHandler.<init>(SonarLintHttpServer.kt:170)
	at o.sl.ij.server.NettyServer.initialize(SonarLintHttpServer.kt:124)
	at o.sl.ij.server.SonarLintHttpServer.startOnce(SonarLintHttpServer.kt:67)
	at o.sl.ij.InitializeSonarLintOnStartup.appFrameCreated(InitializeSonarLintOnStartup.kt:30)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeMethod(MessageBusImpl.kt:722)
	at c.ij.util.messages.impl.MessageBusImplKt.invokeListener(MessageBusImpl.kt:686)
	at c.ij.util.messages.impl.MessageBusImplKt.deliverMessage(MessageBusImpl.kt:445)

Hi,

Welcome to the community and thanks for this report!

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

 
Thx,
Ann