wmyywm / eclipse-code-formatter-intellij-plugin

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

Exception using the plugin #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 
2.
3.

What is the expected output? What do you see instead?
An exception is thrown every so often

What version of the product are you using? On what operating system?
Intellij 12.0.4

Please provide any additional information below.
Access is allowed from event dispatch thread only.
Details: Current thread: Thread[JobScheduler pool 1/2,5,Idea Thread Group] 
31688943
Our dispatch thread:Thread[AWT-EventQueue-0 12.0.4#IU-123.169, eap:false,6,Idea 
Thread Group] 8001884
SystemEventQueueThread: Thread[AWT-EventQueue-0 12.0.4#IU-123.169, 
eap:false,6,Idea Thread Group] 8001884
java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:61)
    at com.intellij.openapi.application.impl.ApplicationImpl.d(ApplicationImpl.java:1087)
    at com.intellij.openapi.application.impl.ApplicationImpl.assertIsDispatchThread(ApplicationImpl.java:1075)
    at com.intellij.openapi.editor.impl.DocumentImpl.setInBulkUpdate(DocumentImpl.java:791)
    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:108)
    at com.intellij.psi.impl.source.codeStyle.CodeFormatterFacade.processElement(CodeFormatterFacade.java:83)
    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:56)
    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:63)
    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:1155)
    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass$1.run(PassExecutorService.java:348)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:232)
    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:129)
    at com.intellij.concurrency.JobLauncherImpl$3.call(JobLauncherImpl.java:126)
    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:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

Original issue reported on code.google.com by dans...@gmail.com on 13 Mar 2013 at 7:25

GoogleCodeExporter commented 9 years ago
This plugin only delegated the call on the original IntelliJ's implementation, 
please create issue at http://youtrack.jetbrains.com/issues/IDEA

Original comment by vojta.kr...@gmail.com on 13 Mar 2013 at 8:00