dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.26k stars 1.58k forks source link

Code complete failure - Unable to locate core library #1272

Closed danrubel closed 9 years ago

danrubel commented 12 years ago

[user feedback] Autocomplete is failing for me at line 43, column 11 (e.g., player2. fails to autocomplete).

user: dgrove@google.com

//////////////////////////////////////////////////////////////////////////////////// Editor Version: 3477 OS: Mac OS X - x86_64 (10.7.2) //////////////////////////////////////////////////////////////////////////////////// build/frog = true deploy/frog = true

!ENTRY com.google.dart.tools.core 4 0 2012-01-21 14:31:47.472 !MESSAGE Failed to parse file:${user.home}/repo/dart-bleeding/dart/client/samples/dartcombat/dartcombatlib.dart !STACK 1 Dart Model Exception: Core Exception [code 0] Failed to parse file:${user.home}/repo/dart-bleeding/dart/client/samples/dartcombat/dartcombatlib.dart        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.analyzeDelta(DartCompilerUtilities.java:490)        at com.google.dart.tools.core.internal.completion.CompletionEngine.complete(CompletionEngine.java:1074)        at com.google.dart.tools.core.internal.completion.CompletionEngine.complete(CompletionEngine.java:1004)        at com.google.dart.tools.core.internal.model.OpenableElementImpl.codeComplete(OpenableElementImpl.java:374)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:954)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:947)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:935)        at com.google.dart.tools.ui.internal.text.dart.DartCompletionProposalComputer.internalComputeCompletionProposals(DartCompletionProposalComputer.java:251)        at com.google.dart.tools.ui.internal.text.dart.DartCompletionProposalComputer.computeCompletionProposals(DartCompletionProposalComputer.java:122)        at com.google.dart.tools.ui.internal.text.dart.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:224)        at com.google.dart.tools.ui.internal.text.dart.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:119)        at com.google.dart.tools.ui.internal.text.dart.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:407)        at com.google.dart.tools.ui.internal.text.dart.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:227)        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1830)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:488)        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)        at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:377)        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935)        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612)        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 com.google.dart.tools.deploy.DartIDEApplication.start(DartIDEApplication.java:44)        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) Caused by: java.lang.RuntimeException: Unable to locate core library        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$DeltaAnalysisRunnable.run(DartCompilerUtilities.java:219)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:95)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.analyzeDelta(DartCompilerUtilities.java:488)        ... 43 more Caused by: org.eclipse.core.runtime.CoreException: Failed to parse file:${user.home}/repo/dart-bleeding/dart/client/samples/dartcombat/dartcombatlib.dart        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.analyzeDelta(DartCompilerUtilities.java:491)        at com.google.dart.tools.core.internal.completion.CompletionEngine.complete(CompletionEngine.java:1074)        at com.google.dart.tools.core.internal.completion.CompletionEngine.complete(CompletionEngine.java:1004)        at com.google.dart.tools.core.internal.model.OpenableElementImpl.codeComplete(OpenableElementImpl.java:374)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:954)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:947)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:935)        at com.google.dart.tools.ui.internal.text.dart.DartCompletionProposalComputer.internalComputeCompletionProposals(DartCompletionProposalComputer.java:251)        at com.google.dart.tools.ui.internal.text.dart.DartCompletionProposalComputer.computeCompletionProposals(DartCompletionProposalComputer.java:122)        at com.google.dart.tools.ui.internal.text.dart.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:224)        at com.google.dart.tools.ui.internal.text.dart.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:119)        at com.google.dart.tools.ui.internal.text.dart.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:407)        at com.google.dart.tools.ui.internal.text.dart.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:227)        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1830)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:488)        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)        at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:377)        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935)        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612)        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 com.google.dart.tools.deploy.DartIDEApplication.start(DartIDEApplication.java:44)        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) Caused by: java.lang.RuntimeException: Unable to locate core library        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$DeltaAnalysisRunnable.run(DartCompilerUtilities.java:219)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:95)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.analyzeDelta(DartCompilerUtilities.java:488)        ... 43 more !SUBENTRY 1 com.google.dart.tools.core 4 0 2012-01-21 14:31:47.498 !MESSAGE Failed to parse file:${user.home}/repo/dart-bleeding/dart/client/samples/dartcombat/dartcombatlib.dart !STACK 0 java.lang.RuntimeException: Unable to locate core library        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$DeltaAnalysisRunnable.run(DartCompilerUtilities.java:219)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:95)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.analyzeDelta(DartCompilerUtilities.java:488)        at com.google.dart.tools.core.internal.completion.CompletionEngine.complete(CompletionEngine.java:1074)        at com.google.dart.tools.core.internal.completion.CompletionEngine.complete(CompletionEngine.java:1004)        at com.google.dart.tools.core.internal.model.OpenableElementImpl.codeComplete(OpenableElementImpl.java:374)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:954)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:947)        at com.google.dart.tools.core.internal.model.CompilationUnitImpl.codeComplete(CompilationUnitImpl.java:935)        at com.google.dart.tools.ui.internal.text.dart.DartCompletionProposalComputer.internalComputeCompletionProposals(DartCompletionProposalComputer.java:251)        at com.google.dart.tools.ui.internal.text.dart.DartCompletionProposalComputer.computeCompletionProposals(DartCompletionProposalComputer.java:122)        at com.google.dart.tools.ui.internal.text.dart.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:224)        at com.google.dart.tools.ui.internal.text.dart.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:119)        at com.google.dart.tools.ui.internal.text.dart.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:407)        at com.google.dart.tools.ui.internal.text.dart.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:227)        at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1830)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:556)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:488)        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)        at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)        at org.eclipse.jface.text.contentassist.ContentAssistant$2.run(ContentAssistant.java:377)        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3935)        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3612)        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 com.google.dart.tools.deploy.DartIDEApplication.start(DartIDEApplication.java:44)        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)

danrubel commented 12 years ago

Changed the title to: "Code complete failure - Unable to locate core library".

stevemessick commented 12 years ago

Is this in setup.dart? I'm not seeing a problem with build 3631. Completion works as expected for "player2."


cc @dgrove.

danrubel commented 12 years ago

Is this still an issue?


Set owner to @dgrove. Added NeedsInfo label.

dgrove commented 12 years ago

I am not seeing this happen any longer.


Added AssumedStale label.