2016-06-21 57 views
0

我正在使用Spring Tool Suite版本3.7.3.RELEASE,並且今天的Open Declaration快捷方式在F3和Ctrl + Click之間停止工作。我讀過一堆其他類似的問題,到目前爲止,這些解決方案都沒有幫助。我已經嘗試了所有如下: Open Declaration在Eclipse中停止工作

  • 關閉

    • 重新導入所有項目,然後重新打開所有項目
    • 。重新啓動Eclipse
    • 走進偏好和手動設置建議
    • 運行Maven更新與一個乾淨的版本

    當我按F3在某些變量或方法的名稱,我得到的錯誤如下圖,這不是非常具有描述性。有什麼想法或想法可能是錯誤的?

    enter image description here

    添加日誌輸出:

    !ENTRY org.eclipse.ui 4 0 2016-06-21 12:05:24.101 
    !MESSAGE Unhandled event loop exception 
    !STACK 0 
    java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer.<init>([Lorg/eclipse/jdt/internal/compiler/env/ISourceType;Lorg/eclipse/jdt/internal/compiler/env/AccessRestriction;)V 
        at org.eclipse.ajdt.core.codeconversion.ITDAwareNameEnvironment.find(ITDAwareNameEnvironment.java:115) 
        at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:305) 
        at org.eclipse.jdt.internal.core.CancelableNameEnvironment.findType(CancelableNameEnvironment.java:45) 
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:174) 
        at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:201) 
        at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3227) 
        at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2939) 
        at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:51) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:495) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:594) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:590) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:564) 
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1320) 
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:952) 
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1113) 
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:324) 
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:312) 
        at org.eclipse.jdt.internal.codeassist.SelectionEngine.select(SelectionEngine.java:973) 
        at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:163) 
        at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:377) 
        at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect_aroundBody0(CompilationUnit.java:371) 
        at org.eclipse.jdt.internal.core.CompilationUnit$AjcClosure1.run(CompilationUnit.java:1) 
        at org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect.ajc$around$org_eclipse_contribution_jdt_itdawareness_ITDAwarenessAspect$6$3f3ffce8proceed(ITDAwarenessAspect.aj:311) 
        at org.eclipse.contribution.jdt.itdawareness.ITDAwarenessAspect.ajc$around$org_eclipse_contribution_jdt_itdawareness_ITDAwarenessAspect$6$3f3ffce8(ITDAwarenessAspect.aj:312) 
        at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect(CompilationUnit.java:371) 
        at org.eclipse.jdt.internal.ui.javaeditor.JavaElementHyperlinkDetector.detectHyperlinks(JavaElementHyperlinkDetector.java:103) 
        at org.eclipse.ui.texteditor.HyperlinkDetectorRegistry$HyperlinkDetectorDelegate.detectHyperlinks(HyperlinkDetectorRegistry.java:78) 
        at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:287) 
        at org.eclipse.jface.text.hyperlink.HyperlinkManager.findHyperlinks(HyperlinkManager.java:259) 
        at org.eclipse.jface.text.hyperlink.HyperlinkManager.mouseMove(HyperlinkManager.java:455) 
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213) 
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 
        at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4415) 
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079) 
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4233) 
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3821) 
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1119) 
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) 
        at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1020) 
        at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150) 
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:692) 
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) 
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:605) 
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148) 
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138) 
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) 
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) 
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388) 
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243) 
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
        at java.lang.reflect.Method.invoke(Method.java:497) 
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:670) 
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:609) 
        at org.eclipse.equinox.launcher.Main.run(Main.java:1516) 
        at org.eclipse.equinox.launcher.Main.main(Main.java:1489) 
    

    這也可能是相關的:

    !ENTRY org.eclipse.core.jobs 4 2 2016-06-21 12:08:52.470 
    !MESSAGE An internal error occurred during: "Compute launch button tooltip". 
    !STACK 0 
    java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer.<init>([Lorg/eclipse/jdt/internal/compiler/env/ISourceType;Lorg/eclipse/jdt/internal/compiler/env/AccessRestriction;)V 
        at org.eclipse.ajdt.core.codeconversion.ITDAwareNameEnvironment.find(ITDAwareNameEnvironment.java:115) 
        at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:305) 
        at org.eclipse.jdt.internal.core.CancelableNameEnvironment.findType(CancelableNameEnvironment.java:45) 
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:174) 
        at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getTypeOrPackage(PackageBinding.java:201) 
        at org.eclipse.jdt.internal.compiler.lookup.Scope.getTypeOrPackage(Scope.java:3227) 
        at org.eclipse.jdt.internal.compiler.lookup.Scope.getType(Scope.java:2939) 
        at org.eclipse.jdt.internal.compiler.ast.SingleTypeReference.getTypeBinding(SingleTypeReference.java:51) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:495) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:594) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:590) 
        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveSuperType(TypeReference.java:564) 
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.findSupertype(ClassScope.java:1320) 
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectSuperclass(ClassScope.java:952) 
        at org.eclipse.jdt.internal.compiler.lookup.ClassScope.connectTypeHierarchy(ClassScope.java:1113) 
        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:324) 
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:337) 
        at org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.resolve(HierarchyResolver.java:816) 
        at org.eclipse.jdt.internal.core.hierarchy.HierarchyResolver.resolve(HierarchyResolver.java:628) 
        at org.eclipse.jdt.internal.core.hierarchy.HierarchyBuilder.buildSupertypes(HierarchyBuilder.java:116) 
        at org.eclipse.jdt.internal.core.hierarchy.IndexBasedHierarchyBuilder.build(IndexBasedHierarchyBuilder.java:151) 
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.compute(TypeHierarchy.java:315) 
        at org.eclipse.jdt.internal.core.hierarchy.TypeHierarchy.refresh(TypeHierarchy.java:1286) 
        at org.eclipse.jdt.internal.core.CreateTypeHierarchyOperation.executeOperation(CreateTypeHierarchyOperation.java:90) 
        at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:724) 
        at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:790) 
        at org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarchy(SourceType.java:743) 
        at org.eclipse.jdt.internal.core.SourceType.newSupertypeHierarchy(SourceType.java:695) 
        at org.eclipse.jdt.internal.launching.JavaLaunchableTester.hasSuperclass(JavaLaunchableTester.java:467) 
        at org.eclipse.jdt.internal.launching.JavaLaunchableTester.test(JavaLaunchableTester.java:611) 
        at org.eclipse.core.internal.expressions.Property.test(Property.java:58) 
        at org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:100) 
        at org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68) 
        at org.eclipse.core.internal.expressions.OrExpression.evaluate(OrExpression.java:22) 
        at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) 
        at org.eclipse.core.internal.expressions.AndExpression.evaluate(AndExpression.java:31) 
        at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) 
        at org.eclipse.core.internal.expressions.IterateExpression.evaluate(IterateExpression.java:160) 
        at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) 
        at org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:75) 
        at org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53) 
        at org.eclipse.core.internal.expressions.EnablementExpression.evaluate(EnablementExpression.java:55) 
        at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.evalEnablementExpression(LaunchShortcutExtension.java:281) 
        at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.getShortcutsForSelection(LaunchingResourceManager.java:454) 
        at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager.computeLabels(LaunchingResourceManager.java:240) 
        at org.eclipse.debug.internal.ui.contextlaunching.LaunchingResourceManager$1$1.run(LaunchingResourceManager.java:142) 
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 
    
  • +0

    查看工作區.metadata目錄中的.log文件,查看是否有更詳細的消息。如果有編輯您的問題,請添加.log中的詳細信息。 –

    +0

    嘗試創建新的工作區並將現有項目導入其中。 –

    +0

    我可以只刪除現有工作區中的某些元數據以恢復正常嗎?沒有直接的解決辦法? – user3270760

    回答

    0

    轉到您的eclipse的插件目錄,並使用關鍵字「AJDT」進行搜索。刪除搜索中出現的所有罐子。重新啓動eclipse,你的問題應該被解決。不過,您需要重新安裝AJDT插件。