IDE Error Occurred
I am developing IntelliJ plugin using IDEA Community Edition 2022.1.4. While running my plugin I am getting "IDE Error occurred" popup. Below is the exception stack trace added. Its occurring not only for this exception, but occurring for some of the other exception also. I need exception to be written either in console or log file based on architecture, but should not be thrown as popup. Please let me know how do I hide this notification.
Exception Stack Trace:
Freeze in EDT for 18 seconds
Sampled time: 10900ms, sampling rate: 100ms, GC time: 42ms (0%), Class loading: 0%, cpu load: 10%
com.intellij.diagnostic.Freeze
at java.base@11.0.14.1/jdk.internal.misc.Unsafe.park(Native Method)
at java.base@11.0.14.1/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:234)
at java.base@11.0.14.1/java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1798)
at java.base@11.0.14.1/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3128)
at java.base@11.0.14.1/java.util.concurrent.CompletableFuture.timedGet(CompletableFuture.java:1868)
at java.base@11.0.14.1/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2021)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.awaitWithCheckCanceled(ProgressIndicatorUtils.java:361)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.awaitWithCheckCanceled(ProgressIndicatorUtils.java:354)
at com.intellij.psi.stubs.StubIndexImpl.getAsyncState(StubIndexImpl.java:75)
at com.intellij.psi.stubs.StubIndexImpl.cleanupMemoryStorage(StubIndexImpl.java:262)
at com.intellij.psi.stubs.StubUpdatingIndex$4.memoryStorageCleared(StubUpdatingIndex.java:372)
at com.intellij.util.indexing.impl.storage.TransientChangesIndexStorage.fireMemoryStorageCleared(TransientChangesIndexStorage.java:81)
at com.intellij.util.indexing.impl.storage.TransientFileContentIndex.cleanupMemoryStorage(TransientFileContentIndex.java:175)
at com.intellij.indexing.composite.CompositeInvertedIndexBase.cleanupMemoryStorage(CompositeInvertedIndexBase.java:97)
at com.intellij.util.indexing.FileBasedIndexImpl.cleanupMemoryStorage(FileBasedIndexImpl.java:1221)
at com.intellij.util.indexing.events.ChangedFilesCollector$3.beforeVfsChange(ChangedFilesCollector.java:147)
at com.intellij.openapi.vfs.newvfs.AsyncEventSupport.beforeVfsChange(AsyncEventSupport.java:121)
at com.intellij.openapi.vfs.newvfs.AsyncEventSupport$1.before(AsyncEventSupport.java:56)
at java.base@11.0.14.1/java.lang.invoke.DirectMethodHandle$Holder.invokeInterface(DirectMethodHandle$Holder)
at java.base@11.0.14.1/java.lang.invoke.LambdaForm$MH/0x00000001005bcc40.invoke(LambdaForm$MH)
at java.base@11.0.14.1/java.lang.invoke.LambdaForm$MH/0x00000001005bc040.invokeExact_MT(LambdaForm$MH)
at com.intellij.util.messages.impl.MessageBusImpl.invokeMethod(MessageBusImpl.java:642)
at com.intellij.util.messages.impl.MessageBusImpl.invokeListener(MessageBusImpl.java:617)
at com.intellij.util.messages.impl.MessageBusImpl.deliverMessage(MessageBusImpl.java:417)
at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:391)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:373)
at com.intellij.util.messages.impl.MessageBusImpl.access$200(MessageBusImpl.java:34)
at com.intellij.util.messages.impl.MessageBusImpl$MessagePublisher.invoke(MessageBusImpl.java:180)
at com.sun.proxy.$Proxy152.before(Unknown Source)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.fireBeforeEvents(PersistentFSImpl.java:1212)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.processEvent(PersistentFSImpl.java:850)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.deleteFile(PersistentFSImpl.java:561)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.delete(VirtualFileSystemEntry.java:261)
at com.intellij.psi.impl.file.PsiDirectoryImpl.delete(PsiDirectoryImpl.java:486)
at com.intellij.ide.util.DeleteHandler.lambda$doDeleteFiles$5(DeleteHandler.java:320)
at com.intellij.ide.util.DeleteHandler$$Lambda$3526/0x000000010230bc40.run(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1015)
at com.intellij.ide.util.DeleteHandler.doDeleteFiles(DeleteHandler.java:317)
at com.intellij.ide.util.DeleteHandler.lambda$deleteInCommand$0(DeleteHandler.java:210)
at com.intellij.ide.util.DeleteHandler$$Lambda$3504/0x00000001022fdc40.run(Unknown Source)
at com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessProvider.disableChecksDuring(NonProjectFileWritingAccessProvider.java:176)
at com.intellij.ide.util.DeleteHandler.lambda$deleteInCommand$1(DeleteHandler.java:197)
at com.intellij.ide.util.DeleteHandler$$Lambda$3500/0x00000001022fec40.run(Unknown Source)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:219)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:174)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:164)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:150)
at com.intellij.ide.util.DeleteHandler.deleteInCommand(DeleteHandler.java:197)
at com.intellij.ide.util.DeleteHandler.deletePsiElement(DeleteHandler.java:182)
at com.intellij.ide.util.DeleteHandler.deletePsiElement(DeleteHandler.java:110)
at com.intellij.ide.projectView.impl.ProjectViewDeleteElementProvider.deleteElement(ProjectViewDeleteElementProvider.java:53)
at com.intellij.ide.actions.DeleteAction.actionPerformed(DeleteAction.java:37)
at com.intellij.openapi.keymap.impl.ActionProcessor.performAction(ActionProcessor.java:65)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:579)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$10(IdeKeyEventDispatcher.java:704)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$$Lambda$3473/0x00000001022c4440.run(Unknown Source)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:106)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$doPerformActionInner$11(IdeKeyEventDispatcher.java:704)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$$Lambda$3471/0x00000001022c5440.run(Unknown Source)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareWithCallbacks(ActionUtil.java:256)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.doPerformActionInner(IdeKeyEventDispatcher.java:701)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:645)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:590)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:473)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:462)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:227)
at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:804)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:740)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:439)
at com.intellij.ide.IdeEventQueue$$Lambda$403/0x00000001005bfc40.compute(Unknown Source)
at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:803)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:438)
at com.intellij.ide.IdeEventQueue$$Lambda$402/0x00000001005bf840.run(Unknown Source)
at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:119)
at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:604)
at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:436)
at com.intellij.ide.IdeEventQueue$$Lambda$401/0x00000001005b8040.run(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:873)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:484)
at java.desktop@11.0.14.1/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
at java.desktop@11.0.14.1/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.desktop@11.0.14.1/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.desktop@11.0.14.1/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.desktop@11.0.14.1/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.desktop@11.0.14.1/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Please sign in to leave a comment.
Please let me know the status of above request. Is there a need of additional information?
Hi,
When error occurrs, IDE always shows it to a user, so that the user can report it to JetBrains or plugin vendor. There is no way of hiding this mechanism by 3rd-party plugins.
If I misunderstood your question, please clarify it. Is caused by your plugin? I don't see any 3rd-party code entries in the stacktrace.
Thanks for the information.
I wil try to explain my scenario. I have developed intelliJ plugin. When user is performing some actions in the plugin sometimes IDE Error Occurred message popup is showed in the framework. End user of this plugin is not fine with getting this kind of popup. So I am checking for settings/configuration in the framework through which end user will not be able to see the popup.