ArtsiomCh / CMake

IntelliJ Platform plugin for CMake basic syntax highlight.
https://plugins.jetbrains.com/plugin/10089-cmake-simple-highlighter
GNU General Public License v3.0
44 stars 7 forks source link

Should be called at least in the state COMPONENTS_LOADED, the current state is: CONFIGURATION_STORE_INITIALIZED #25

Closed ariel-avi closed 2 years ago

ariel-avi commented 3 years ago

The following error occurred when I was attempting to open CLion. The application did not crash, but I thought that it would be good to report it as well.

Should be called at least in the state COMPONENTS_LOADED, the current state is: CONFIGURATION_STORE_INITIALIZED
Current violators count: 1

java.lang.Throwable
    at com.intellij.diagnostic.LoadingState.logStateError(LoadingState.java:53)
    at com.intellij.diagnostic.LoadingState.checkOccurred(LoadingState.java:49)
    at com.intellij.openapi.util.registry.Registry.getInstance(Registry.java:170)
    at com.intellij.openapi.util.registry.Registry.get(Registry.java:44)
    at com.intellij.openapi.util.registry.Registry.is(Registry.java:57)
    at com.intellij.notification.impl.NotificationSettingsKt.isSoundEnabled(NotificationSettings.kt:77)
    at com.intellij.notification.impl.NotificationsBeeper.notify(NotificationsBeeper.kt:13)
    at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:645)
    at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:624)
    at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:386)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:372)
    at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:33)
    at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:172)
    at com.sun.proxy.$Proxy36.setInfo(Unknown Source)
    at com.intellij.openapi.wm.StatusBar$Info.set(StatusBar.java:55)
    at com.intellij.notification.LogModel.setStatusMessage(LogModel.java:72)
    at com.intellij.notification.LogModel.addNotification(LogModel.java:44)
    at com.intellij.notification.EventLog$MyNotificationListener.notify(EventLog.java:708)
    at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:645)
    at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:624)
    at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:390)
    at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:372)
    at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:33)
    at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:179)
    at com.sun.proxy.$Proxy32.notify(Unknown Source)
    at com.intellij.notification.Notifications$Bus.doNotify(Notifications.java:85)
    at com.intellij.notification.Notifications$Bus.lambda$notify$1(Notifications.java:74)
    at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101)
    at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2183)
    at com.intellij.notification.Notifications$Bus.notify(Notifications.java:74)
    at com.intellij.notification.Notification.notify(Notification.java:302)
    at com.cmakeplugin.CMakeComponent.initComponent(CMakeComponent.java:43)
    at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:44)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
    at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
    at com.intellij.serviceContainer.ComponentManagerImpl.createComponents(ComponentManagerImpl.kt:407)
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadComponents$5(ApplicationImpl.java:369)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170)
    at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(ApplicationImpl.java:369)
    at com.intellij.idea.ApplicationLoader$startApp$loadComponentInEdtFuture$1.run(ApplicationLoader.kt:136)
    at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
    at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:214)
    at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:21)
    at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:196)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:794)
    at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:350)
    at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:84)
    at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:133)
    at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
    at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:189)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:408)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
cmbruns commented 2 years ago

Here's a link to a fix for a similar initComponent() error in another project https://github.com/krasa/StringManipulation/issues/92

perisage commented 2 years ago

the same problem!

marcopus commented 2 years ago

this happens in 212.0.1 in PyCharm 2021.2.3 too

ArtsiomCh commented 2 years ago

Should be fixed in latest 213.1.4 version. Let me know please if it happens again.

overfl0 commented 2 years ago

Thanks for attempting to fix the issue but, sadly, this is still happening in 213.1.5

overfl0 commented 2 years ago

Unless... I just noticed that this may have been an old error that was shown just now? I'm a bit surprised because the error report shows 213.1.5, but the time doesn't match (looks like an error that happened a few hours ago).

Maybe disregard my previous message, for now, as I may not have cleared the previous reports. Sorry for the trouble.

ArtsiomCh commented 2 years ago

@overfl0 you're right. I fix it for Cmake Plus plugin but didn't fix for Cmake Simple Highlighter

ArtsiomCh commented 2 years ago

Fixed in 213.1.6 Cmake Simple Highlighter plugin version PS Affects only IDE 2021.2 and below (seems to be fixed on IDE side at 2021.3)