wmyywm / eclipse-code-formatter-intellij-plugin

Automatically exported from code.google.com/p/eclipse-code-formatter-intellij-plugin
0 stars 0 forks source link

"Access is allowed from event dispatch only" error #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have not noticed the error during use, but IntelliJ flashed a warning at me 
that a fatal error occurred. The stack trace below is repeated multiple times:

Access is allowed from event dispatch thread only.
Details: Current thread: Thread[JobScheduler pool 7/8,5,Idea Thread Group] 
916859970
Our dispatch thread:Thread[AWT-EventQueue-0 12.1.4#IU-129.713, eap:false,6,Idea 
Thread Group] 274035120
SystemEventQueueThread: Thread[AWT-EventQueue-0 12.1.4#IU-129.713, 
eap:false,6,Idea Thread Group] 274035120
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:61)
    at com.intellij.openapi.application.impl.ApplicationImpl.b(ApplicationImpl.java:1114)
    at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1102)
    at com.intellij.openapi.editor.impl.DocumentImpl.setInBulkUpdate(DocumentImpl.java:816)
    at com.intellij.formatting.FormatProcessor$ApplyChangesState.prepare(FormatProcessor.java:1396)
    at com.intellij.formatting.FormatProcessor$State.a(FormatProcessor.java:1270)
    at com.intellij.formatting.FormatProcessor$State.iteration(FormatProcessor.java:1237)
    at com.intellij.formatting.FormatProcessor.iteration(FormatProcessor.java:244)
    at com.intellij.formatting.FormatterImpl$MyFormattingTask.iteration(FormatterImpl.java:795)
    at com.intellij.formatting.FormatterImpl.a(FormatterImpl.java:229)
    at com.intellij.formatting.FormatterImpl.format(FormatterImpl.java:183)
    at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processRange(CodeFormatterFacade.java:113)
    at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processElement(CodeFormatterFacade.java:88)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:98)
    at com.intellij.psi.impl.source.codeStyle.CodeStyleManagerImpl.reformat(CodeStyleManagerImpl.java:85)
    at krasa.formatter.plugin.DelegatingCodeStyleManager.reformat(DelegatingCodeStyleManager.java:57)
    at com.intellij.psi.impl.source.tree.java.ParameterListElement.deleteChildInternal(ParameterListElement.java:123)
    at com.intellij.psi.impl.source.tree.java.ParameterListElement.deleteChildInternal(ParameterListElement.java:88)
    at com.intellij.psi.impl.source.JavaStubPsiElement.delete(JavaStubPsiElement.java:129)
    at com.intellij.codeInsight.daemon.impl.quickfix.DelegateWithDefaultParamValueIntentionAction.a(DelegateWithDefaultParamValueIntentionAction.java:86)
    at com.intellij.codeInsight.daemon.impl.quickfix.DelegateWithDefaultParamValueIntentionAction.isAvailable(DelegateWithDefaultParamValueIntentionAction.java:60)
    at com.intellij.codeInsight.intention.PsiElementBaseIntentionAction.isAvailable(PsiElementBaseIntentionAction.java:64)
    at com.intellij.codeInsight.intention.impl.config.IntentionActionWrapper.isAvailable(IntentionActionWrapper.java:56)
    at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.a(ShowIntentionActionsHandler.java:112)
    at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.availableFor(ShowIntentionActionsHandler.java:103)
    at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$1.process(ShowIntentionsPass.java:221)
    at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass$1.process(ShowIntentionsPass.java:218)
    at com.intellij.codeInsight.intention.impl.ShowIntentionActionsHandler.chooseBetweenHostAndInjected(ShowIntentionActionsHandler.java:137)
    at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.getActionsToShow(ShowIntentionsPass.java:217)
    at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.b(ShowIntentionsPass.java:154)
    at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass.doCollectInformation(ShowIntentionsPass.java:128)
    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:62)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1$1.run(PassExecutorService.java:357)
    at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1182)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:226)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:345)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:321)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:145)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:142)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at com.intellij.concurrency.PrioritizedFutureTask.access$101(PrioritizedFutureTask.java:31)
    at com.intellij.concurrency.PrioritizedFutureTask$1.run(PrioritizedFutureTask.java:70)
    at com.intellij.concurrency.PrioritizedFutureTask.run(PrioritizedFutureTask.java:113)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)

Original issue reported on code.google.com by benjie...@gmail.com on 25 Jun 2013 at 8:23

GoogleCodeExporter commented 9 years ago
please create an issue here http://youtrack.jetbrains.com/issues/IDEA
This plugin only delegates the call to original IJ implementation.

Original comment by vojta.kr...@gmail.com on 25 Jun 2013 at 8:28

GoogleCodeExporter commented 9 years ago
*This plugin only delegates the call to original IJ implementation, in this 
case...

Original comment by vojta.kr...@gmail.com on 25 Jun 2013 at 8:30