-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
t: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
If the following app is run with one Foo class definition and then "hot restarted" after a second Foo definition is added, flutter run hangs.
class Foo { }
class Foo { }
void main() { print(new Foo()); }
Performing hot restart...
compiler message: lib/main.dart:61:7: Error: Duplicated definition of 'Foo'.
compiler message: class Foo { }
compiler message: ^
compiler message: lib/main.dart:60:11: Error: Duplicated name: Foo
compiler message: class Foo { }
compiler message: ^
E/flutter ( 4573): [ERROR:flutter/shell/common/engine.cc(151)] Could not prepare to run the isolate.
E/flutter ( 4573): [ERROR:flutter/shell/common/engine.cc(116)] Engine not prepare and launch isolate.
Metadata
Metadata
Assignees
Labels
t: hot reloadReloading code during "flutter run"Reloading code during "flutter run"toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.