wmyywm / eclipse-code-formatter-intellij-plugin

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

Idea error report #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is idea report. See my attached eclipse formatter export file.
Tested on Idea latest community edition.
Thanx. 

startOffset0, endOffset:1372, length of file 1372: formatting failed, probably 
due to syntax error in the code or wrong config file
java.lang.RuntimeException: formatting failed, probably due to syntax error in 
the code or wrong config file
    at krasa.formatter.eclipse.JavaCodeFormatterFacade.formatInternal(JavaCodeFormatterFacade.java:95)
    at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:18)
    at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:103)
    at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsOpen(EclipseCodeFormatter.java:88)
    at krasa.formatter.plugin.EclipseCodeFormatter.formatWithEclipse(EclipseCodeFormatter.java:55)
    at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:49)
    at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:119)
    at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:75)
    at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:157)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:93)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:82)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$2.run(AbstractLayoutCodeProcessor.java:210)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:117)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:93)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:81)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:333)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:646)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:616)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:699)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:538)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:420)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by sko...@gmail.com on 12 Sep 2012 at 6:56

Attachments:

GoogleCodeExporter commented 9 years ago
does it happen always? because this is pretty normal when you have broken 
syntax...

Original comment by vojta.kr...@gmail.com on 12 Sep 2012 at 7:46

GoogleCodeExporter commented 9 years ago
Muzeme cesky?

Jo jasne, dela to jenom kdyz mam nekomplilovatelny syntax kodu. Tak to je
ok. Nemuselo by to ale psat jako chybu to idea logu. Issue muzete klidne
zavrit.

Dik, super plugin.

Laco Skokan.

Original comment by sko...@gmail.com on 12 Sep 2012 at 9:45

GoogleCodeExporter commented 9 years ago
Problem je, ze nejde odlisit jestli to spadlo kvuli syntax chybe, nebo spatny 
konfiguraci, eclipsi formatter vrati proste null :-)
Takze hazu chybu, ale trochu to teda upravim, ted uz ten stacktrace stejne 
postrada smysl.

Original comment by vojta.kr...@gmail.com on 12 Sep 2012 at 9:50