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

Incremental compilation problems #909

Closed danrubel closed 9 years ago

danrubel commented 12 years ago

[user feedback] floitsch: Saving file builder.dart (or other files) generates a bunch of errors (25). Forcing recompile clears them. This is (currently) reproducable.

//////////////////////////////////////////////////////////////////////////////////// Editor Version: 2562 OS: Linux - amd64 ////////////////////////////////////////////////////////////////////////////////////

dOperationAction.doPasteWithImportsOperation(ClipboardOperationAction.java:403)        at com.google.dart.tools.ui.internal.text.editor.ClipboardOperationAction.internalDoOperation(ClipboardOperationAction.java:291)        at com.google.dart.tools.ui.internal.text.editor.ClipboardOperationAction$1.run(ClipboardOperationAction.java:247)        at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)        at com.google.dart.tools.ui.internal.text.editor.ClipboardOperationAction.run(ClipboardOperationAction.java:244)        at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)        at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)        at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)

       at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1531)        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1257)        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)        at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1294)        at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:730)        at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:3019)        at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:734)        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1743)        at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016)        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408)        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8394)        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245)        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258)        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)        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:57)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:616)        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)        at org.eclipse.equinox.launcher.Main.main(Main.java:1386)

!ENTRY org.eclipse.ui 4 0 2011-12-19 16:06:28.241

!MESSAGE Unhandled event loop exception !STACK 0 org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)        at org.eclipse.swt.SWT.error(SWT.java:4282)        at org.eclipse.swt.SWT.error(SWT.java:4197)        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)

       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:57)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:616)        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)        at org.eclipse.equinox.launcher.Main.main(Main.java:1386) Caused by: java.lang.IllegalArgumentException: Argument not valid

       at org.eclipse.swt.SWT.error(SWT.java:4263)        at org.eclipse.swt.SWT.error(SWT.java:4197)        at org.eclipse.swt.SWT.error(SWT.java:4168)        at org.eclipse.swt.custom.StyledText.getBidiSegments(StyledText.java:4776)        at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:789)        at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)        at org.eclipse.swt.custom.StyledTextRenderer.calculate(StyledTextRenderer.java:211)        at org.eclipse.swt.custom.StyledTextRenderer.calculateClientArea(StyledTextRenderer.java:229)        at org.eclipse.swt.custom.StyledText.resetCache(StyledText.java:7791)        at org.eclipse.swt.custom.StyledText.redrawRange(StyledText.java:7456)        at org.eclipse.jface.text.source.MatchingCharacterPainter.draw(MatchingCharacterPainter.java:199)        at org.eclipse.jface.text.source.MatchingCharacterPainter.handleDrawRequest(MatchingCharacterPainter.java:162)        at org.eclipse.jface.text.source.MatchingCharacterPainter.deactivate(MatchingCharacterPainter.java:106)        at org.eclipse.jface.text.source.MatchingCharacterPainter.paint(MatchingCharacterPainter.java:222)        at org.eclipse.jface.text.PaintManager.paint(PaintManager.java:298)        at org.eclipse.jface.text.PaintManager.access$1(PaintManager.java:296)        at org.eclipse.jface.text.PaintManager$1.run(PaintManager.java:353)        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)        ... 23 more

!ENTRY org.eclipse.ui 4 0 2011-12-19 16:06:33.194

!MESSAGE Unhandled event loop exception !STACK 0 java.lang.IllegalArgumentException: Argument not valid        at org.eclipse.swt.SWT.error(SWT.java:4263)        at org.eclipse.swt.SWT.error(SWT.java:4197)        at org.eclipse.swt.SWT.error(SWT.java:4168)        at org.eclipse.swt.custom.StyledText.getBidiSegments(StyledText.java:4776)        at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:789)        at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)        at org.eclipse.swt.custom.StyledTextRenderer.drawLine(StyledTextRenderer.java:364)        at org.eclipse.swt.custom.StyledText.handlePaint(StyledText.java:6076)        at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5640)        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)        at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.java:2961)        at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite.java:701)        at org.eclipse.swt.widgets.Canvas.gtk_expose_event(Canvas.java:167)        at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1739)        at org.eclipse.swt.widgets.Control.windowProc(Control.java:5016)        at org.eclipse.swt.widgets.Display.windowProc(Display.java:4408)        at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)        at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8394)        at org.eclipse.swt.widgets.Display.eventProc(Display.java:1245)        at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)        at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2258)        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3207)        at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)        at org.eclipse.jface.window.Window.open(Window.java:801)        at org.eclipse.jface.dialogs.MessageDialog.open(MessageDialog.java:334)        at org.eclipse.ui.internal.SaveablesList.promptForSaving(SaveablesList.java:529)        at org.eclipse.ui.internal.SaveablesList.promptForSavingIfNecessary(SaveablesList.java:433)        at org.eclipse.ui.internal.SaveablesList.preCloseParts(SaveablesList.java:388)        at org.eclipse.ui.internal.SaveablesList.preCloseParts(SaveablesList.java:347)        at org.eclipse.ui.internal.WorkbenchPage.closeEditors(WorkbenchPage.java:1426)        at org.eclipse.ui.internal.WorkbenchPage.closeEditor(WorkbenchPage.java:1514)        at org.eclipse.ui.internal.EditorPane.doHide(EditorPane.java:61)        at org.eclipse.ui.internal.PartStack.close(PartStack.java:537)        at org.eclipse.ui.internal.EditorStack.close(EditorStack.java:206)        at org.eclipse.ui.internal.PartStack$1.close(PartStack.java:120)        at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:83)        at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:269)        at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:278)        at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)        at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$1.closeButtonPressed(DefaultTabFolder.java:71)        at org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:631)        at org.eclipse.ui.internal.presentations.PaneFolder$3.close(PaneFolder.java:206)        at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1598)        at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:261) !ENTRY com.google.dart.tools.core 1 0 2011-12-19 16:34:38.373 !MESSAGE INFO: Could not find file for source "file:/usr/local/google/floitsch/code/dart/dart/frog/leg/scanner/scannerlib.dart/token.dart" (1): duplicate top-level definition 'StringWrapper' !STACK 0 java.lang.RuntimeException: Could not find file for source "file:/usr/local/google/floitsch/code/dart/dart/frog/leg/scanner/scannerlib.dart/token.dart" (1): duplicate top-level definition 'StringWrapper'        at com.google.dart.tools.core.internal.builder.CompilerListener.getResource(CompilerListener.java:149)        at com.google.dart.tools.core.internal.builder.CompilerListener.processError(CompilerListener.java:171)        at com.google.dart.tools.core.internal.builder.CompilerListener.onError(CompilerListener.java:78)        at com.google.dart.compiler.DartCompilerMainContext.onError(DartCompilerMainContext.java:62)        at com.google.dart.compiler.resolver.TopLevelElementBuilder.compilationError(TopLevelElementBuilder.java:96)        at com.google.dart.compiler.resolver.TopLevelElementBuilder.reportDuplicateDeclaration(TopLevelElementBuilder.java:127)        at com.google.dart.compiler.resolver.TopLevelElementBuilder.declare(TopLevelElementBuilder.java:114)        at com.google.dart.compiler.resolver.TopLevelElementBuilder.fillInUnitScope(TopLevelElementBuilder.java:88)        at com.google.dart.compiler.resolver.TopLevelElementBuilder.fillInLibraryScope(TopLevelElementBuilder.java:70)        at com.google.dart.compiler.DartCompiler$Compiler.buildLibraryScopes(DartCompiler.java:432)        at com.google.dart.compiler.DartCompiler$Compiler.updateAndResolve(DartCompiler.java:215)        at com.google.dart.compiler.DartCompiler$Compiler.compile(DartCompiler.java:170)        at com.google.dart.compiler.DartCompiler$Compiler.access$3(DartCompiler.java:167)        at com.google.dart.compiler.DartCompiler.compileLib(DartCompiler.java:1147)        at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureCompileLib(DartCompilerUtilities.java:796)        at com.google.dart.tools.core.internal.builder.DartBuilder.buildLibrary(DartBuilder.java:399)        at com.google.dart.tools.core.internal.builder.DartBuilder.buildAllApplications(DartBuilder.java:303)        at com.google.dart.tools.core.internal.builder.DartBuilder.build(DartBuilder.java:272)        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)        at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

clayberg commented 12 years ago

Added AssumedStale label.