我无法打开任何黄瓜文件。我尝试卸载,重新安装黄瓜罐,清理项目...检查版本兼容性......没有用。我查看了已经问过的问题和答案,但找不到任何适合我的问题的答案,因此发布了问题。这是详细的错误:
编辑器无法初始化。 java.lang.NullPointerException at org.eclipse.jdt.internal.core.search.matching.MatchLocator.findIndexMatches(MatchLocator.java:275) 在 org.eclipse.jdt.internal.core.search.PatternSearchJob.search(PatternSearchJob.java:109) 在 org.eclipse.jdt.internal.core.search.PatternSearchJob.execute(PatternSearchJob.java:65) 在 org.eclipse.jdt.internal.core.search.processing.JobManager.performConcurrentJob(JobManager.java:277) 在 org.eclipse.jdt.internal.core.search.BasicSearchEngine.findMatches(BasicSearchEngine.java:215) 在 org.eclipse.jdt.internal.core.search.BasicSearchEngine.search(BasicSearchEngine.java:516) 在 org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:584) 在 cucumber.eclipse.steps.jdt.StepDefinitions.getAllAnnotationsInPackage(StepDefinitions.java:327) 在 cucumber.eclipse.steps.jdt.StepDefinitions.getCukeSteps(StepDefinitions.java:135) 在 cucumber.eclipse.editor.steps.jdt.JDTStepDefinitions.collectCukeStepsFromSource(JDTStepDefinitions.java:116) 在 cucumber.eclipse.editor.steps.jdt.JDTStepDefinitions.getSteps(JDTStepDefinitions.java:79) 在 cucumber.eclipse.editor.steps.ExtensionRegistryStepProvider.reloadSteps(ExtensionRegistryStepProvider.java:43) 在 cucumber.eclipse.editor.steps.ExtensionRegistryStepProvider。(ExtensionRegistryStepProvider.java:26) 在cucumber.eclipse.editor.editors.Editor.doSetInput(Editor.java:177) 在 org.eclipse.ui.texteditor.AbstractTextEditor $ 19.run(AbstractTextEditor.java:3220) 在 org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:463) 在 org.eclipse.jface.operation.ModalContext.run(ModalContext.java:371) 在 org.eclipse.ui.internal.WorkbenchWindow $ 14.run(WorkbenchWindow.java:2181) 在 org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 在 org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2177) 在 org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3238) 在 org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3265) 在 org.eclipse.ui.internal.EditorReference.initialize(EditorReference.java:361) 在 org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.create(CompatibilityPart.java:319) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)at sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)at java.lang.reflect.Method.invoke(未知来源)at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56) 在 org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:898) 在 org.eclipse.e4.core.internal.di.InjectorImpl.processAnnotated(InjectorImpl.java:879) 在 org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:121) 在 org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:345) 在 org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264) 在 org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162) 在 org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104) 在 org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73) 在 org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55) 在 org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:971) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:640) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:746) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access $ 0(PartRenderingEngine.java:717) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 2.run(PartRenderingEngine.java:711) 在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:695) 在 org.eclipse.e4.ui.internal.workbench.PartServiceImpl $ 1.handleEvent(PartServiceImpl.java:99) 在 org.eclipse.e4.ui.services.internal.events.UIEventHandler $ 1.run(UIEventHandler.java:40) 在 org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:186) 在 org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145) 在org.eclipse.swt.widgets.Display.syncExec(Display.java:4761)at org.eclipse.e4.ui.internal.workbench.swt.E4Application $ 1.syncExec(E4Application.java:211) 在 org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36) 在 org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:197) 在 org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197) 在 org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1) 在 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230) 在 org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148) 在 org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135) 在 org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78) 在 org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39) 在 org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:85) 在 org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:59) 在 org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374) 在 org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:171) 在 org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.showElementInWindow(ModelServiceImpl.java:572) 在 org.eclipse.e4.ui.internal.workbench.ModelServiceImpl.bringToTop(ModelServiceImpl.java:536) 在 org.eclipse.e4.ui.internal.workbench.PartServiceImpl.delegateBringToTop(PartServiceImpl.java:724) 在 org.eclipse.e4.ui.internal.workbench.PartServiceImpl.bringToTop(PartServiceImpl.java:396) 在 org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1166) 在 org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3252) 在 org.eclipse.ui.internal.WorkbenchPage.access $ 25(WorkbenchPage.java:3167) 在 org.eclipse.ui.internal.WorkbenchPage $ 10.run(WorkbenchPage.java:3149) 在 org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 在 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3144) 在 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3108) 在 org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3098) 在org.eclipse.ui.ide.IDE.openEditor(IDE.java:541)at org.eclipse.ui.ide.IDE.openEditor(IDE.java:500)at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360) 在 org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167) 在org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268)at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233)at at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275) 在 org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251) 在 org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376) 在 org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart $ 4.open(PackageExplorerPart.java:538) 在 org.eclipse.ui.OpenAndLinkWithEditorHelper $ InternalListener.open(OpenAndLinkWithEditorHelper.java:48) 在 org.eclipse.jface.viewers.StructuredViewer $ 2.run(StructuredViewer.java:854) 在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)at org.eclipse.ui.internal.JFaceUtil $ 1.run(JFaceUtil.java:50)at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173)at at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:851) 在 org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1168) 在 org.eclipse.jface.viewers.StructuredViewer $ 6.handleOpen(StructuredViewer.java:1275) 在 org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:278) 在 org.eclipse.jface.util.OpenStrategy.access $ 2(OpenStrategy.java:272) 在 org.eclipse.jface.util.OpenStrategy $ 1.handleEvent(OpenStrategy.java:313) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Display.sendEvent(Display.java:4362)at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1113)at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4180) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3769) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 4.run(PartRenderingEngine.java:1127) 在 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) 在 org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1018) 在 org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156) 在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:694)at at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:337) 在 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:606) 在 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 在 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:139) 在 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 在 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380) 在 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)at sun.reflect.DelegatingMethodAccessorImpl.invoke(未知来源)at java.lang.reflect.Method.invoke(未知来源)at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:669)at at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)at at org.eclipse.equinox.launcher.Main.run(Main.java:1515)