Skip to main content



      Home
Home » Newcomers » Newcomers » 2024-03 useless because can no longer bring up search dialog
2024-03 useless because can no longer bring up search dialog [message #1865097] Fri, 26 April 2024 01:10 Go to next message
Eclipse UserFriend
For quite a while, I've had a problem with Eclipse 2024-03 that makes severely handicapped. For some reason, some time after a workspace is created, the Search Dialog simply stops appearing. Usually, I can use a workspace for a week or so before it gets into this state, and it never comes out of it. My only workaround so far has been to create a new workspace. This is somewhat annoying, as I have dozens of git repos and projects associated with those repos, although I'm now getting used to the keyboard shortcuts to import a repo in a particular way. Nevertheless, it is quite painful to have to do this every week or so.

However, it's now gotten much worse. I only just created a new workspace today. Search was working earlier today, but now it's gone again. This time it only lasted a few hours.

I do find that I have not seen this issue in 2023-09. I have a feeling I'm going to be stuck with that version for quite a while.

In the error log, the indication that this is happening is shown from the following stack trace:

!ENTRY org.eclipse.e4.ui.workbench 4 0 2024-04-25 22:00:32.330
!MESSAGE Execution exception for: ParameterizedCommand(Command(org.eclipse.search.ui.openSearchDialog,Open Search Dialog,
Open the Search dialog,
Category(org.eclipse.search.ui.category.search,Search,Search command category,true),
WorkbenchHandlerServiceHandler("org.eclipse.search.ui.openSearchDialog"),
,,true),null) in
context chain: WorkbenchContext -> TrimmedWindowImpl (IDEWindow) Context -> PerspectiveImpl (org.eclipse.jdt.ui.JavaPerspective) Context -> PartImpl (org.eclipse.e4.ui.compatibility.editor) removeOnHide (pl_idp_ms.groovy) Context
!STACK 0
org.eclipse.core.commands.ExecutionException: Error executing 'org.eclipse.search.ui.openSearchDialog': java.lang.NullPointerException: Cannot invoke "org.eclipse.ui.IEditorPart.getAdapter(java.lang.Class)" because "editor" is null
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:179)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:485)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:204)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:308)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:569)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:644)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:439)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:96)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1287)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1065)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1090)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1075)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1117)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1113)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1594)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4866)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:345)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4744)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:340)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5039)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3658)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1042)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:152)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:639)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:546)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:173)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:651)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:588)
at org.eclipse.equinox.launcher.Main.run(Main.java:1459)
Caused by: org.eclipse.e4.core.di.InjectionException: java.lang.NullPointerException: Cannot invoke "org.eclipse.ui.IEditorPart.getAdapter(java.lang.Class)" because "editor" is null
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:68)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:298)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:232)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:174)
at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:165)
... 42 more
Caused by: java.lang.NullPointerException: Cannot invoke "org.eclipse.ui.IEditorPart.getAdapter(java.lang.Class)" because "editor" is null
at org.eclipse.search.internal.ui.ScopePart.selectedResourcesFromEditors(ScopePart.java:247)
at org.eclipse.search.internal.ui.ScopePart.createPart(ScopePart.java:457)
at org.eclipse.search.internal.ui.SearchDialog.createPageControl(SearchDialog.java:763)
at org.eclipse.search.internal.ui.SearchDialog.createPageArea(SearchDialog.java:425)
at org.eclipse.search.internal.ui.util.ExtendedDialogWindow.createDialogArea(ExtendedDialogWindow.java:142)
at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:766)
at org.eclipse.jface.window.Window.create(Window.java:431)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1092)
at org.eclipse.search.internal.ui.SearchDialog.create(SearchDialog.java:290)
at org.eclipse.jface.window.Window.open(Window.java:788)
at org.eclipse.search.internal.ui.OpenSearchDialogAction.run(OpenSearchDialogAction.java:60)
at org.eclipse.search.internal.ui.OpenSearchDialogAction.run(OpenSearchDialogAction.java:50)
at org.eclipse.ui.internal.handlers.ActionDelegateHandlerProxy.execute(ActionDelegateHandlerProxy.java:285)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:98)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)

I also created the following issue for this, although there hasn't bee much useful response:

https://github.com/eclipse-platform/eclipse.platform/issues/1151
Re: 2024-03 useless because can no longer bring up search dialog [message #1865100 is a reply to message #1865097] Fri, 26 April 2024 02:32 Go to previous messageGo to next message
Eclipse UserFriend
It's really very easy to create a development environment and contribute fixes:

https://github.com/eclipse-platform/.github/blob/main/CONTRIBUTING.md#creating-an-eclipse-development-environment

The fix is rather obvious and trivial:

https://github.com/eclipse-platform/eclipse.platform.ui/pull/1858

I can tell you from personal experience that the flood of email generated from GitHub is often overwhelming so one hopes that perhaps someone else will address whatever issue is raised. You can also pretty much rest assured that very likely no developer on these projects reads this forum.
Re: 2024-03 useless because can no longer bring up search dialog [message #1866975 is a reply to message #1865100] Tue, 11 June 2024 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Experiencing the same issue with Eclipse 2024-03. Search Dialog disappearing is a real pain. Trying out basic fixes like clearing cache and updating plugins. If all else fails, considering rolling back to the stable 2023-09 version. Hope this gets resolved soon!
Re: 2024-03 useless because can no longer bring up search dialog [message #1866987 is a reply to message #1866975] Tue, 11 June 2024 10:07 Go to previous messageGo to next message
Eclipse UserFriend
The 2024-06 release is tomorrow.
Re: 2024-03 useless because can no longer bring up search dialog [message #1866996 is a reply to message #1866987] Tue, 11 June 2024 12:04 Go to previous message
Eclipse UserFriend
Note that I was made aware of a workaround for this, which is not obvious, but it is pretty easy to do. When this happens, simply close all editor buffers and restart Eclipse. I've had to do that several times now, and it has worked every time. I believe I got this info in a response to the issue that I filed for this.
Previous Topic:How do I completely remove Eclipse IDE from my Linux computer?
Next Topic:Upgrade to 2024-06 unable to read workspace
Goto Forum:
  


Current Time: Sun Apr 27 16:56:51 EDT 2025

Powered by FUDForum. Page generated in 0.07286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top