Intention Example Files

I was wondering how to supply intention example files for use in my custom languages intention descriptions - I am refering to the before and after files. If I go to the intention options for my custom language the files it is looking for are not there

I am supplying files named:  before.lua.template, and after.lua.template. I believe it is looking for before.java.template, and after.java.template - which I am not providing.

I am getting this exception:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_PRESSED,(498,368),absolute(841,513),button=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on dialog0: @NotNull method com/intellij/codeInsight/intention/impl/config/IntentionActionMetaData.getExampleUsagesBefore must not return null
java.lang.IllegalStateException: @NotNull method com/intellij/codeInsight/intention/impl/config/IntentionActionMetaData.getExampleUsagesBefore must not return null
    at com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData.getExampleUsagesBefore(IntentionActionMetaData.java:97)
    at com.intellij.codeInsight.intention.impl.config.IntentionDescriptionPanel.reset(IntentionDescriptionPanel.java:74)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.a(IntentionSettingsPanel.java:96)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.access$000(IntentionSettingsPanel.java:36)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel$1.selectionChanged(IntentionSettingsPanel.java:50)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsTree$2.valueChanged(IntentionSettingsTree.java:90)
    at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)
    at com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:504)
    at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078)
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:170)
    at javax.swing.JTree.setSelectionPath(JTree.java:1598)
    at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2311)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3520)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3459)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.Component.processMouseEvent(Component.java:6264)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:293)
    at java.awt.Component.processEvent(Component.java:6032)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1046)
    at java.awt.Dialog$3.run(Dialog.java:1098)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1096)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:675)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:412)
    at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1175)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1160)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:59)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:45)
    at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:53)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:242)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:645)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:104)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:228)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:92)
    at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
    at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
    at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
    at java.awt.Component.processMouseEvent(Component.java:6267)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6032)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    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)



java.lang.IllegalStateException: @NotNull method com/intellij/codeInsight/intention/impl/config/IntentionActionMetaData.getExampleUsagesBefore must not return null
    at com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData.getExampleUsagesBefore(IntentionActionMetaData.java:97)
    at com.intellij.codeInsight.intention.impl.config.IntentionDescriptionPanel.reset(IntentionDescriptionPanel.java:74)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.a(IntentionSettingsPanel.java:96)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.access$000(IntentionSettingsPanel.java:36)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel$1.selectionChanged(IntentionSettingsPanel.java:50)
    at com.intellij.codeInsight.intention.impl.config.IntentionSettingsTree$2.valueChanged(IntentionSettingsTree.java:90)
    at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:629)
    at com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(Tree.java:504)
    at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1078)
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:287)
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:170)
    at javax.swing.JTree.setSelectionPath(JTree.java:1598)
    at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2311)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3520)
    at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3459)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
    at java.awt.Component.processMouseEvent(Component.java:6264)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:293)
    at java.awt.Component.processEvent(Component.java:6032)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
    at java.awt.Dialog$1.run(Dialog.java:1046)
    at java.awt.Dialog$3.run(Dialog.java:1098)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1096)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:675)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:412)
    at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1175)
    at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1160)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:59)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:45)
    at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:53)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:242)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:645)
    at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:104)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:228)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:92)
    at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
    at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
    at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
    at java.awt.Component.processMouseEvent(Component.java:6267)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6032)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4630)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4460)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
    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)

2 comments
Comment actions Permalink

Hello Jon,

In fact IDEA looks for .template files with extensions of all registered
file types, so .lua.template should be OK. Before this exception, some other
exception should happen, showing why exactly it failed to load the intention
descriptions.

I was wondering how to supply intention example files for use in my
custom languages intention descriptions - I am refering to the before
and after files. If I go to the intention options for my custom
language the files it is looking for are

I am supplying files named:  before.lua.template, and
after.lua.template. I believe it is looking for before.java.template,
and after.java.template - which I am not providing.

I am getting this exception:

Error during dispatching of
java.awt.event.MouseEvent[MOUSE_PRESSED,(498,368),absolute(841,513),bu
tton=1,modifiers=Button1,extModifiers=Button1,clickCount=1] on
dialog0: @NotNull method
com/intellij/codeInsight/intention/impl/config/IntentionActionMetaData
.getExampleUsagesBefore must not return null
java.lang.IllegalStateException: @NotNull method
com/intellij/codeInsight/intention/impl/config/IntentionActionMetaData
.getExampleUsagesBefore must not return null
at
com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData
.getExampleUsagesBefore(IntentionActionMetaData.java:97)
at
com.intellij.codeInsight.intention.impl.config.IntentionDescriptionPan
el.reset(IntentionDescriptionPanel.java:74)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.
a(IntentionSettingsPanel.java:96)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.
access$000(IntentionSettingsPanel.java:36)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel$
1.selectionChanged(IntentionSettingsPanel.java:50)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsTree$2
.valueChanged(IntentionSettingsTree.java:90)
at
javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTre
eSelectionModel.java:629)
at
com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(T
ree.java:504)
at
javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTre
eSelectionModel.java:1078)
at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTr
eeSelectionModel.java:287)
at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTre
eSelectionModel.java:170)
at javax.swing.JTree.setSelectionPath(JTree.java:1598)
at
javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java
:2311)
at
javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI
.java:3520)
at
javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.ja
va:3459)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at java.awt.Component.processMouseEvent(Component.java:6264)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at
com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:293)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at
com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
d.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:184)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:178)
at java.awt.Dialog$1.run(Dialog.java:1046)
at java.awt.Dialog$3.run(Dialog.java:1098)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1096)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(Dialo
gWrapperPeerImpl.java:675)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperP
eerImpl.java:412)
at
com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:
1175)
at
com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1160)
at
com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.j
ava:59)
at
com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowS
ettingsUtilImpl.java:45)
at
com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettin
gsAction.java:53)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte
r$1.run(ActionMenuItem.java:242)
at
com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusMan
agerImpl.java:645)
at
com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFo
cusManagerImpl.java:104)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte
r.actionPerformed(ActionMenuItem.java:228)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:199
5)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerfor
med(ActionMenuItem.java:92)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:4
4)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleas
ed(BegMenuItemUI.java:532)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at
com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
d.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.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)
java.lang.IllegalStateException: @NotNull method
com/intellij/codeInsight/intention/impl/config/IntentionActionMetaData
.getExampleUsagesBefore must not return null
at
com.intellij.codeInsight.intention.impl.config.IntentionActionMetaData
.getExampleUsagesBefore(IntentionActionMetaData.java:97)
at
com.intellij.codeInsight.intention.impl.config.IntentionDescriptionPan
el.reset(IntentionDescriptionPanel.java:74)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.
a(IntentionSettingsPanel.java:96)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel.
access$000(IntentionSettingsPanel.java:36)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsPanel$
1.selectionChanged(IntentionSettingsPanel.java:50)
at
com.intellij.codeInsight.intention.impl.config.IntentionSettingsTree$2
.valueChanged(IntentionSettingsTree.java:90)
at
javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTre
eSelectionModel.java:629)
at
com.intellij.ui.treeStructure.Tree$MySelectionModel.fireValueChanged(T
ree.java:504)
at
javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTre
eSelectionModel.java:1078)
at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTr
eeSelectionModel.java:287)
at
javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTre
eSelectionModel.java:170)
at javax.swing.JTree.setSelectionPath(JTree.java:1598)
at
javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java
:2311)
at
javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI
.java:3520)
at
javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.ja
va:3459)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at
java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262
)
at java.awt.Component.processMouseEvent(Component.java:6264)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at
com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:293)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4235)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at
com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
d.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:184)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:178)
at java.awt.Dialog$1.run(Dialog.java:1046)
at java.awt.Dialog$3.run(Dialog.java:1098)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1096)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(Dialo
gWrapperPeerImpl.java:675)
at
com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperP
eerImpl.java:412)
at
com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:
1175)
at
com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1160)
at
com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.j
ava:59)
at
com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowS
ettingsUtilImpl.java:45)
at
com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettin
gsAction.java:53)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte
r$1.run(ActionMenuItem.java:242)
at
com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusMan
agerImpl.java:645)
at
com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFo
cusManagerImpl.java:104)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte
r.actionPerformed(ActionMenuItem.java:228)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:199
5)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerfor
med(ActionMenuItem.java:92)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:512)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:4
4)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleas
ed(BegMenuItemUI.java:532)
at java.awt.Component.processMouseEvent(Component.java:6267)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6032)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at
com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:501)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea
d.java:269)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j
ava:184)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.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 message URL:
http://devnet.jetbrains.net/message/5298794#5298794


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks, knowing that it should be working lead me to find that by default *.template files are not included in the build output, and that is why they weren't showing up. I should have checked that they were in the output, thanks for answering my question.

0

Please sign in to leave a comment.