mjedynak/Builder-Generator — Issue #3: Missing source root on Maven project
Author: jschneider
Created: 2012-01-31 16:20:49+00:00
State: open

Trying to generate a builder for a class within a module that has been imported from a Maven pom.

Your plugin tells me, that there are no source roots configured for the parent module (which is correct).
I think the plugin tries to generate the java classes within the wrong module...

After canceling several dialogs I get this exception:

I got this exception:

Original exception: Argument 0 for @NotNull parameter of com/intellij/psi/impl/file/JavaDirectoryServiceImpl.createClass must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/psi/impl/file/JavaDirectoryServiceImpl.createClass must not be null
at com.intellij.psi.impl.file.JavaDirectoryServiceImpl.createClass(JavaDirectoryServiceImpl.java)
at pl.mjedynak.idea.plugins.builder.psi.impl.BuilderPsiClassBuilderImpl.aBuilder(BuilderPsiClassBuilderImpl.java:59)
at pl.mjedynak.idea.plugins.builder.writer.BuilderWriterComputable.getBuilderPsiClass(BuilderWriterComputable.java:57)
at pl.mjedynak.idea.plugins.builder.writer.BuilderWriterComputable.createBuilder(BuilderWriterComputable.java:46)
at pl.mjedynak.idea.plugins.builder.writer.BuilderWriterComputable.compute(BuilderWriterComputable.java:40)
at pl.mjedynak.idea.plugins.builder.writer.BuilderWriterComputable.compute(BuilderWriterComputable.java:15)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:896)
at pl.mjedynak.idea.plugins.builder.writer.BuilderWriterRunnable.run(BuilderWriterRunnable.java:38)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:112)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:88)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:76)
at pl.mjedynak.idea.plugins.builder.writer.impl.BuilderWriterImpl.writeBuilder(BuilderWriterImpl.java:30)
at pl.mjedynak.idea.plugins.builder.action.handler.DisplayChoosersRunnable.writeBuilderIfNecessary(DisplayChoosersRunnable.java:79)
at pl.mjedynak.idea.plugins.builder.action.handler.DisplayChoosersRunnable.run(DisplayChoosersRunnable.java:71)
at com.intellij.ui.popup.AbstractPopup$16.run(AbstractPopup.java:1134)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushRequest(FocusManagerImpl.java:611)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushNow(FocusManagerImpl.java:592)
at com.intellij.openapi.wm.impl.FocusManagerImpl.flushIdleRequests(FocusManagerImpl.java:562)
at com.intellij.openapi.wm.impl.FocusManagerImpl.access$200(FocusManagerImpl.java:52)
at com.intellij.openapi.wm.impl.FocusManagerImpl$7.run(FocusManagerImpl.java:461)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1699)
at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:439)
at com.intellij.ide.impl.DataManagerImpl.getDataContextFromFocus(DataManagerImpl.java:212)
at com.intellij.ide.navigationToolbar.NavBarUpdateQueue$3.run(NavBarUpdateQueue.java:78)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:308)
at com.intellij.util.ui.update.MergingUpdateQueue.execute(MergingUpdateQueue.java:298)
at com.intellij.util.ui.update.MergingUpdateQueue$2.run(MergingUpdateQueue.java:243)
at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:1699)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:255)
at com.intellij.util.ui.update.MergingUpdateQueue.flush(MergingUpdateQueue.java:217)
at com.intellij.util.ui.update.MergingUpdateQueue.run(MergingUpdateQueue.java:207)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access$000(EventQueue.java:101)
at java.awt.EventQueue$3.run(EventQueue.java:666)
at java.awt.EventQueue$3.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:694)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:416)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)