wmyywm / eclipse-code-formatter-intellij-plugin

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

Unable to format due to NoClassDefFoundError #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Full log attached, but this is probably the pertinent info:

2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - 
IntelliJ IDEA 12.1.4  Build #IC-129.713 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - 
JDK: 1.6.0_51 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - VM: 
Java HotSpot(TM) 64-Bit Server VM 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - 
Vendor: Apple Inc. 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - OS: 
Mac OS X 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - 
Last Action: ReformatCode 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - 
Current Command: Reformat Code 
2013-07-23 15:31:17,909 [ 116610]  ERROR - ns.AbstractLayoutCodeProcessor - 
Original exception:  
java.lang.NoClassDefFoundError: org/eclipse/jface/text/Document
    at krasa.formatter.eclipse.JavaCodeFormatterFacade.formatInternal(JavaCodeFormatterFacade.java:49)
    at krasa.formatter.eclipse.CodeFormatterFacade.format(CodeFormatterFacade.java:17)
    at krasa.formatter.plugin.EclipseCodeFormatter.reformat(EclipseCodeFormatter.java:103)
    at krasa.formatter.plugin.EclipseCodeFormatter.formatWhenEditorIsClosed(EclipseCodeFormatter.java:70)
    at krasa.formatter.plugin.EclipseCodeFormatter.format(EclipseCodeFormatter.java:57)
    at krasa.formatter.plugin.EclipseCodeStyleManager.formatWithEclipse(EclipseCodeStyleManager.java:129)
    at krasa.formatter.plugin.EclipseCodeStyleManager.reformatText(EclipseCodeStyleManager.java:80)
    at krasa.formatter.plugin.DelegatingCodeStyleManager.reformatText(DelegatingCodeStyleManager.java:158)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:94)
    at com.intellij.codeInsight.actions.ReformatCodeProcessor$1.call(ReformatCodeProcessor.java:83)
    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$ReformatFilesTask.iteration(AbstractLayoutCodeProcessor.java:554)
    at com.intellij.util.SequentialModalProgressTask$1.run(SequentialModalProgressTask.java:95)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:765)
    at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:195)
    at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:701)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:300)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.run(ProgressManagerImpl.java:453)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$3.run(AbstractLayoutCodeProcessor.java:270)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$7.run(AbstractLayoutCodeProcessor.java:366)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1013)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1$1.run(AbstractLayoutCodeProcessor.java:489)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:124)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:99)
    at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:85)
    at com.intellij.codeInsight.actions.AbstractLayoutCodeProcessor$9$1.run(AbstractLayoutCodeProcessor.java:484)
    at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:343)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
    at java.awt.EventQueue.access$400(EventQueue.java:82)
    at java.awt.EventQueue$2.run(EventQueue.java:676)
    at java.awt.EventQueue$2.run(EventQueue.java:674)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
    at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:525)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

Original issue reported on code.google.com by justinfr...@gmail.com on 24 Jul 2013 at 1:14

Attachments:

GoogleCodeExporter commented 9 years ago
Well, that is strange. I would suggest reinstall of the plugin.

also please check that you have this file:
org.eclipse.text_3.5.101.r371_v20110810-0800.jar
 in 
.IdeaIC12\config\plugins\EclipseFormatter\lib

Original comment by vojta.kr...@gmail.com on 24 Jul 2013 at 8:26

GoogleCodeExporter commented 9 years ago
Ok, user error on this one.  I had moved the plugin and reinstalled (without 
uninstalling), and got this error.  After verifying that the jar you mentioned 
was there, I completely removed the plugin, invalidated my caches, then 
reinstalled and it works.  Thanks for the help!

Original comment by justinfr...@gmail.com on 26 Jul 2013 at 4:50

GoogleCodeExporter commented 9 years ago
good :)

Original comment by vojta.kr...@gmail.com on 26 Jul 2013 at 4:55