senyor / generate-tostring

Automatically exported from code.google.com/p/generate-tostring
0 stars 0 forks source link

Internal IDE exception thrown for IDEA 7.0.1 (build #7364) #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open first IDEA project;
2. Open second IDEA project (keep the first open);
3. Invoke the toString() plugin in any class;
4. Observe global chaos, bystanders injured.

What is the expected output? What do you see instead?

I expect to the toString() plugin dialog offering field choices, instead I
see the fatal IDEA exception icon - red exclamation mark - in the
bottom-right corner of the project window.

I get the following stack trace.

---[ cut/paste ]---
Error during dispatching of
java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=com.intellij.ui.popup
.PopupFactoryImpl$ActionPopupStep$1@966142,notifier=null,catchExceptions=false,w
hen=1197248937140]
on sun.awt.windows.WToolkit@988dd6: Argument 0 for @NotNull parameter of
com/intellij/psi/PsiManager.getInstance must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of
com/intellij/psi/PsiManager.getInstance must not be null
    at com.intellij.psi.PsiManager.getInstance(PsiManager.java)
    at generate.tostring.psi.PsiAdapter.getPsiManager(PsiAdapter.java:60)
    at
generate.tostring.GenerateToStringContext.getManager(GenerateToStringContext.jav
a:65)
    at
generate.tostring.GenerateToStringContext.getElementFactory(GenerateToStringCont
ext.java:69)
    at
generate.tostring.GenerateToStringActionHandlerImpl.doExecuteAction(GenerateToSt
ringActionHandlerImpl.java:116)
    at
generate.tostring.GenerateToStringActionHandlerImpl.executeWriteAction(GenerateT
oStringActionHandlerImpl.java:74)
    at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWr
iteActionHandler.java:51)
    at
com.intellij.openapi.application.impl.ApplicationImpl$13.compute(ApplicationImpl
.java:3)
    at
com.intellij.psi.impl.source.PostprocessReformattingAspect.postponeFormattingIns
ide(PostprocessReformattingAspect.java:109)
    at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(Application
Impl.java:214)
    at
com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(Editor
WriteActionHandler.java:35)
    at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:59
)
    at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandPro
cessorImpl.java:67)
    at
com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandPro
cessorImpl.java:68)
    at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorActi
on.java:66)
    at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorActi
on.java:45)
    at
com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep$1.run(PopupFactoryImpl.ja
va:3)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:111)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:53)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:92)
    at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273
)
    at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173
)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
---[ end cut/paste ]---

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

IDEA 7.0.1 using GenerateToString 4.0.4 on WinXPsp2.

Please provide any additional information below.

It seems pretty consistent for me - as soon as the second project window is
open, the bug occurs.  Hopefully this translates to a hard fault for you.

Good luck!  Am happy to run tests for confirmation if you have a patch
candidate.

Original issue reported on code.google.com by aha...@gmail.com on 10 Dec 2007 at 1:28

GoogleCodeExporter commented 8 years ago
<Sigh> Really should have checked to see if submitted.

Original comment by aha...@gmail.com on 10 Dec 2007 at 1:29

GoogleCodeExporter commented 8 years ago
Thanks for taking the time to report this issue.

I have time over the holidays to investigte and provide a fix for it.

Original comment by claus.ib...@gmail.com on 10 Dec 2007 at 11:24

GoogleCodeExporter commented 8 years ago
Duplicate of bug #15

Original comment by claus.ib...@gmail.com on 21 Dec 2007 at 12:43

GoogleCodeExporter commented 8 years ago

Original comment by claus.ib...@gmail.com on 21 Dec 2007 at 12:43

GoogleCodeExporter commented 8 years ago
Partly fixed now. No exceptions is thrown. However IDEA changes focus to the 
other
windows during the dialogs (choose fileds, replace yes/no) and then focus back 
to the
correct window.

Original comment by claus.ib...@gmail.com on 21 Dec 2007 at 1:23

GoogleCodeExporter commented 8 years ago
Fixed it now will release a new version shortly.

Original comment by claus.ib...@gmail.com on 3 Jan 2008 at 9:28

GoogleCodeExporter commented 8 years ago
Fixed in SVN rev 28

Original comment by claus.ib...@gmail.com on 5 Jan 2008 at 11:16