microsoft / azure-tools-for-java

Azure tools for Java, including Azure Toolkits for Eclipse, IntelliJ and related projects.
Other
240 stars 161 forks source link

[IntelliJ] Uncaught Exception java.lang.Throwable: com.microsoft.azure.toolkit.lib.common.telemetry.AzureTelemeter <clinit> requests com.microsoft.azure.toolkit.intellij.common.settings.IntellijStore instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead. #9027

Closed DainiusDraeger closed 2 months ago

DainiusDraeger commented 2 months ago

IntelliJ build version: 2024.2.0.2 IU-242.20224.419 OS: Mac OS X JDK: JetBrains s.r.o. 21.0.3 Plugin version: 3.91.0-2024.2 Additional Info: None Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,0,0,1920x1055,invalid,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=com.intellij.ui.ToolbarServiceImpl$setTransparentTitleBar$customBorder$1@6a6eed3f,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:


IdeaLoggingEvent[message=null, throwable=java.lang.Throwable: com.microsoft.azure.toolkit.lib.common.telemetry.AzureTelemeter <clinit> requests com.microsoft.azure.toolkit.intellij.common.settings.IntellijStore instance. Class initialization must not depend on services. Consider using instance of the service on-demand instead.
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:376)
    at com.microsoft.azure.toolkit.intellij.common.settings.IntellijStore.getInstance(IntellijStore.java:36)
    at com.microsoft.azure.toolkit.intellij.common.telemetry.IntelliJAzureTelemetryCommonPropertiesProvider.getInstallationId(IntelliJAzureTelemetryCommonPropertiesProvider.java:
Flanker32 commented 2 months ago

Duplicate of #8473