IntelliJ 8M1 toString exception
I cannot generate a ToString, for it causes this exception:
Error during dispatching of java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1@82ea35,notifier=null,catchExceptions=false,when=1219394672390] on apple.awt.CToolkit@ad1914: com.intellij.psi.PsiManager.getElementFactory()Lcom/intellij/psi/PsiElementFactory;
java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.getElementFactory()Lcom/intellij/psi/PsiElementFactory;
at generate.tostring.psi.PsiAdapter.getPsiElemetFactory(PsiAdapter.java:71)
at generate.tostring.GenerateToStringActionHandlerImpl.doExecuteAction(GenerateToStringActionHandlerImpl.java:117)
at generate.tostring.GenerateToStringActionHandlerImpl.executeWriteAction(GenerateToStringActionHandlerImpl.java:78)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java:51)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:222)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:35)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:60)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:143)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:67)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:46)
at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.java:3)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:44)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:42)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:224)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Please sign in to leave a comment.
Hello Erik,
Please remove the version of toString plugin installed in config/plugins.
The toString plugin is now bundled, and the bundled version works correctly.
(Also note that it's far from the first time I'm answering this question,
and it doesn't hurt to use Search on forums to check if someone already ran
into the same problem.)
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Well, if you know the other one is broken, why bundle two toStrings plugins with the same installation? I never installed it, because I know it is bundled.
btw, could you tell me where I can find the 'config' directory? When using Windows, it's no problem to find it, but I'm new to Mac OS, and I actually have no idea where these settings are stored (I used the search!)
Hello Erik,
Of course we don't bundle two plugins. The other one was copied from your
IDEA 7 installation when you copied the settings.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Erik,
The plugins are under ~/Library/Application Support/IntelliJIDEA80
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"