Community
Participate
Working Groups
I am using the head build of code recommenders of above version. When bringing up the view Codesearch Query and no matter whether I enter text or not and then press the green bar on the right with the tooltip "Submit the views code search query" I get a NPE…… java.lang.NullPointerException at org.eclipse.recommenders.internal.rcp.codesearch.views.QueryView.getInput(QueryView.java:97) at org.eclipse.recommenders.internal.rcp.codesearch.views.QueryView$1.run(QueryView.java:61) at org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4125) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3971) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3610) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
The most convenient way to use code-search is by triggering it directly from code completion inside your active editor. I couldn't recreate your error ( i triggered a query from active java editor before). Did you trigger a code-search before using the button? Anyways, Tobias will completely rework the code-search interface and views in the next weeks/months. Given that and the statement that the view is more a debug view than thought to be used by clients, I'd like to set this issue to WONT FIX and wait until Tobias comes up with a smarter UI in ~November.
(In reply to comment #1) > The most convenient way to use code-search is by triggering it directly from > code completion inside your active editor. I couldn't recreate your error ( i > triggered a query from active java editor before). Did you trigger a > code-search before using the button? > > Anyways, Tobias will completely rework the code-search interface and views in > the next weeks/months. > > Given that and the statement that the view is more a debug view than thought to > be used by clients, I'd like to set this issue to WONT FIX and wait until > Tobias comes up with a smarter UI in ~November. thats ok for me….