Azn9 / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
Apache License 2.0
156 stars 10 forks source link

[Bug]: java.lang.Throwable: Conflicting component name 'DiscordProjectSettings': class com.almightyalpaca.jetbrains.plugins.discord.plugin.settings.impl.ProjectSettingsImpl and class dev.azn9.plugins.discord.settings.impl.ProjectSettingsImpl (componentManager=null) #200

Closed JDI-Bot closed 2 months ago

JDI-Bot commented 2 months ago

IDE version

IntelliJ IDEA 2023.2.6 (IC-232.10300.40)

OS

Windows

Java version

17.0.10

Plugin version

2.1.1.232

Error message

java.lang.Throwable: Conflicting component name 'DiscordProjectSettings': class com.almightyalpaca.jetbrains.plugins.discord.plugin.settings.impl.ProjectSettingsImpl and class dev.azn9.plugins.discord.settings.impl.ProjectSettingsImpl (componentManager=null)

Additional info

/

Stack trace

java.lang.Throwable: Conflicting component name 'DiscordProjectSettings': class com.almightyalpaca.jetbrains.plugins.discord.plugin.settings.impl.ProjectSettingsImpl and class dev.azn9.plugins.discord.settings.impl.ProjectSettingsImpl (componentManager=null)
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:370)
    at com.intellij.configurationStore.ComponentStoreImpl.registerComponent(ComponentStoreImpl.kt:396)
    at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:131)
    at com.intellij.configurationStore.ComponentStoreWithExtraComponents.initComponent(ComponentStoreWithExtraComponents.kt:48)
    at com.intellij.serviceContainer.ComponentManagerImpl.initializeComponent$intellij_platform_serviceContainer(ComponentManagerImpl.kt:577)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:51)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:43)
    at com.intellij.serviceContainer.BaseComponentAdapter.doCreateInstance(BaseComponentAdapter.kt:158)
    at com.intellij.serviceContainer.BaseComponentAdapter.createInstance(BaseComponentAdapter.kt:137)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:94)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:676)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:630)
    at com.intellij.openapi.project.impl.DefaultProject.getService(DefaultProject.java:221)
    at dev.azn9.plugins.discord.settings.ProjectSettingsKt.getSettings(ProjectSettings.kt:54)
    at dev.azn9.plugins.discord.settings.impl.ProjectSettingsImpl.(ProjectSettingsImpl.kt:35)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
    at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
    at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:95)
    at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:1011)
    at com.intellij.serviceContainer.ServiceComponentAdapter.createAndInitialize(ServiceComponentAdapter.kt:47)
    at com.intellij.serviceContainer.ServiceComponentAdapter.doCreateInstance(ServiceComponentAdapter.kt:43)
    at com.intellij.serviceContainer.BaseComponentAdapter.doCreateInstance(BaseComponentAdapter.kt:158)
    at com.intellij.serviceContainer.BaseComponentAdapter.createInstance(BaseComponentAdapter.kt:137)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:94)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:676)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:630)
    at dev.azn9.plugins.discord.settings.ProjectSettingsKt.getSettings(ProjectSettings.kt:54)
    at dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity.checkAskShowProject(NotificationPostStartupActivity.kt:60)
    at dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity.access$checkAskShowProject(NotificationPostStartupActivity.kt:34)
    at dev.azn9.plugins.discord.postLoad.NotificationPostStartupActivity$execute$2.invokeSuspend(NotificationPostStartupActivity.kt:40)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
    at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
    at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

Issue hash: 404e1ce6d765a0219a28796ee03b57d5

Azn9 commented 2 months ago

Uninstall Alpaca 's old plugin + update the plugin