diff --git a/packages/flutter_tools/lib/src/doctor.dart b/packages/flutter_tools/lib/src/doctor.dart index 09f7ce2126..87b0d8f8c8 100644 --- a/packages/flutter_tools/lib/src/doctor.dart +++ b/packages/flutter_tools/lib/src/doctor.dart @@ -275,8 +275,13 @@ abstract class IntelliJValidator extends DoctorValidator { int installCount = 0; - if (_validateHasPackage(messages, 'Dart', 'Dart')) + if (isWebStorm) { + // Dart is bundled with WebStorm. installCount++; + } else { + if (_validateHasPackage(messages, 'Dart', 'Dart')) + installCount++; + } if (_validateHasPackage(messages, 'flutter-intellij.jar', 'Flutter')) installCount++; @@ -295,6 +300,8 @@ abstract class IntelliJValidator extends DoctorValidator { ); } + bool get isWebStorm => title == 'WebStorm'; + bool _validateHasPackage(List messages, String packageName, String title) { if (!hasPackage(packageName)) { messages.add(new ValidationMessage( diff --git a/packages/flutter_tools/lib/src/ios/ios_workflow.dart b/packages/flutter_tools/lib/src/ios/ios_workflow.dart index e3d2263d59..6a672f8d6f 100644 --- a/packages/flutter_tools/lib/src/ios/ios_workflow.dart +++ b/packages/flutter_tools/lib/src/ios/ios_workflow.dart @@ -132,13 +132,12 @@ class IOSWorkflow extends DoctorValidator implements Workflow { brewStatus = ValidationType.partial; if (hasIosDeploy) { messages.add(new ValidationMessage.error( - 'ios-deploy out of date: $iosDeployMinimumVersion is required.\n' - 'Upgrade via \'brew upgrade ios-deploy\'.' + 'ios-deploy out of date ($iosDeployMinimumVersion is required): ' + 'upgrade via \'brew upgrade ios-deploy\'.' )); } else { messages.add(new ValidationMessage.error( - 'ios-deploy not installed: $iosDeployMinimumVersion is required.\n' - 'Install via \'brew install ios-deploy\'.' + 'ios-deploy not installed: install via \'brew install ios-deploy\'.' )); } } else {