"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/flutter_tools/lib/src/devtools_launcher.dart" between
flutter-2.0.2.tar.gz and flutter-2.0.3.tar.gz

About: Flutter is Google's SDK for crafting beautiful apps for mobile, web, and desktop from a single codebase.

devtools_launcher.dart  (flutter-2.0.2):devtools_launcher.dart  (flutter-2.0.3)
skipping to change at line 158 skipping to change at line 158
); );
try { try {
final io.ProcessResult _devToolsActivateProcess = await _processManager final io.ProcessResult _devToolsActivateProcess = await _processManager
.run(<String>[ .run(<String>[
_pubExecutable, _pubExecutable,
'global', 'global',
'activate', 'activate',
'devtools' 'devtools'
]); ]);
if (_devToolsActivateProcess.exitCode != 0) { if (_devToolsActivateProcess.exitCode != 0) {
status.cancel();
_logger.printError('Error running `pub global activate ' _logger.printError('Error running `pub global activate '
'devtools`:\n${_devToolsActivateProcess.stderr}'); 'devtools`:\n${_devToolsActivateProcess.stderr}');
return false; return false;
} }
status.stop();
_persistentToolState.lastDevToolsActivationTime = DateTime.now(); _persistentToolState.lastDevToolsActivationTime = DateTime.now();
return true; return true;
} on Exception catch (e, _) { } on Exception catch (e, _) {
status.stop();
_logger.printError('Error running `pub global activate devtools`: $e'); _logger.printError('Error running `pub global activate devtools`: $e');
return false; return false;
} finally {
status.stop();
} }
} }
@override @override
Future<DevToolsServerAddress> serve() async { Future<DevToolsServerAddress> serve() async {
if (activeDevToolsServer == null) { if (activeDevToolsServer == null) {
await launch(null); await launch(null);
} }
return activeDevToolsServer; return activeDevToolsServer;
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)