mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
This reverts commit 09e68c33cc
.
AOT snapshotter is broken at this engine rev.
https://flutter-dashboard.appspot.com/api/get-log?ownerKey=ahNzfmZsdXR0ZXItZGFzaGJvYXJkclgLEglDaGVja2xpc3QiOGZsdXR0ZXIvZmx1dHRlci8wOWU2OGMzM2NjZGIzNTVmZWRkNzVhODcxNmRlMDU1MWM3NzJmMmRlDAsSBFRhc2sYgICAgICAwAgM
This commit is contained in:
parent
91b6319a4f
commit
0e63e470e4
2
bin/cache/engine.version
vendored
2
bin/cache/engine.version
vendored
@ -1 +1 @@
|
||||
b2e592592fa070afebd7c062cad245d152a4d370
|
||||
28e9b3bc49a83cf5d7a1da2222c02f0f929b1909
|
||||
|
@ -445,18 +445,9 @@ class HotRunner extends ResidentRunner {
|
||||
} else {
|
||||
flutterUsage.sendEvent('hot', 'reload');
|
||||
}
|
||||
} catch (error, st) {
|
||||
int errorCode = error['code'];
|
||||
if (errorCode == Isolate.kIsolateReloadBarred) {
|
||||
printError('Unable to hot reload app due to an unrecoverable error in '
|
||||
'the source code. Please address the error and then '
|
||||
'Use "R" to restart the app.');
|
||||
flutterUsage.sendEvent('hot', 'reload-barred');
|
||||
return false;
|
||||
}
|
||||
String errorMessage = error['message'];
|
||||
} catch (errorMessage, st) {
|
||||
reloadStatus.stop(showElapsedTime: true);
|
||||
printError('Hot reload failed:\ncode = $errorCode\nmessage = $errorMessage\n$st');
|
||||
printError('Hot reload failed:\n$errorMessage\n$st');
|
||||
return false;
|
||||
}
|
||||
await _evictDirtyAssets();
|
||||
|
@ -749,18 +749,12 @@ class Isolate extends ServiceObjectOwner {
|
||||
_upgradeCollection(map, this);
|
||||
}
|
||||
|
||||
static final int kIsolateReloadBarred = 1005;
|
||||
|
||||
Future<Map<String, dynamic>> reloadSources() async {
|
||||
try {
|
||||
Map<String, dynamic> response = await invokeRpcRaw('_reloadSources');
|
||||
return response;
|
||||
} on rpc.RpcException catch(e) {
|
||||
return new Future<Map<String, dynamic>>.error(<String, dynamic>{
|
||||
'code': e.code,
|
||||
'message': e.message,
|
||||
'data': e.data,
|
||||
});
|
||||
} catch (e) {
|
||||
return new Future<Map<String, dynamic>>.error(e.data['details']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user