Commit 2383d605 authored by Devon Carew's avatar Devon Carew

add the dart vm version to flutter doctor

* add the dart vm version to flutter doctor

* drop the dart vm change
parent 39efe4af
...@@ -96,9 +96,10 @@ Future<Null> main(List<String> args) async { ...@@ -96,9 +96,10 @@ Future<Null> main(List<String> args) async {
} else { } else {
// We've crashed; emit a log report. // We've crashed; emit a log report.
stderr.writeln(); stderr.writeln();
stderr.writeln('Oops; flutter has exited unexpectedly: "$error"'); if (error is String)
stderr.writeln('Oops; flutter has exited unexpectedly: "$error".');
stderr.writeln(); else
stderr.writeln('Oops; flutter has exited unexpectedly.');
if (Platform.environment.containsKey('FLUTTER_DEV')) { if (Platform.environment.containsKey('FLUTTER_DEV')) {
// If we're working in the tools themselves, just print the stack trace. // If we're working in the tools themselves, just print the stack trace.
...@@ -106,8 +107,9 @@ Future<Null> main(List<String> args) async { ...@@ -106,8 +107,9 @@ Future<Null> main(List<String> args) async {
} else { } else {
File file = _createCrashReport(args, error, chain); File file = _createCrashReport(args, error, chain);
stderr.writeln('Crash report written to ${path.relative(file.path)}.'); stderr.writeln(
stderr.writeln('Please let us know at https://github.com/flutter/flutter/issues!'); 'Crash report written to ${path.relative(file.path)}; '
'please let us know at https://github.com/flutter/flutter/issues.');
} }
exit(1); exit(1);
...@@ -127,10 +129,10 @@ File _createCrashReport(List<String> args, dynamic error, Chain chain) { ...@@ -127,10 +129,10 @@ File _createCrashReport(List<String> args, dynamic error, Chain chain) {
buf.writeln('## exception\n'); buf.writeln('## exception\n');
buf.writeln('$error\n'); buf.writeln('$error\n');
buf.writeln('${chain.terse}'); buf.writeln('```\n${chain.terse}```\n');
buf.writeln('## flutter doctor\n'); buf.writeln('## flutter doctor\n');
buf.writeln(_doctorText()); buf.writeln('```\n${_doctorText()}```');
crashFile.writeAsStringSync(buf.toString()); crashFile.writeAsStringSync(buf.toString());
...@@ -148,6 +150,6 @@ String _doctorText() { ...@@ -148,6 +150,6 @@ String _doctorText() {
return logger.statusText; return logger.statusText;
} catch (error, trace) { } catch (error, trace) {
return 'encountered exception: $error\n\n```\n${trace.toString().trim()}\n```\n'; return 'encountered exception: $error\n\n${trace.toString().trim()}\n';
} }
} }
...@@ -19,7 +19,6 @@ class DoctorCommand extends FlutterCommand { ...@@ -19,7 +19,6 @@ class DoctorCommand extends FlutterCommand {
@override @override
Future<int> runInProject() async { Future<int> runInProject() async {
// doctor
doctor.diagnose(); doctor.diagnose();
return 0; return 0;
} }
......
...@@ -14,7 +14,6 @@ import 'globals.dart'; ...@@ -14,7 +14,6 @@ import 'globals.dart';
import 'ios/ios_workflow.dart'; import 'ios/ios_workflow.dart';
import 'runner/version.dart'; import 'runner/version.dart';
const Map<String, String> _osNames = const <String, String>{ const Map<String, String> _osNames = const <String, String>{
'macos': 'Mac OS', 'macos': 'Mac OS',
'linux': 'Linux', 'linux': 'Linux',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment