Commit fe520201 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Emit doctor error if Flutter SDK path contains spaces (#10477)

Should be reverted when https://github.com/flutter/flutter/issues/6577
is fixed.
parent 104725f3
......@@ -210,6 +210,10 @@ class _FlutterValidator extends DoctorValidator {
final FlutterVersion version = FlutterVersion.instance;
messages.add(new ValidationMessage('Flutter at ${Cache.flutterRoot}'));
if (Cache.flutterRoot.contains(' '))
messages.add(new ValidationMessage.error(
'Flutter SDK install paths with spaces are not yet supported. (https://github.com/flutter/flutter/issues/10461)\n'
'Please move the SDK to a path that does not include spaces.'));
messages.add(new ValidationMessage(
'Framework revision ${version.frameworkRevisionShort} '
'(${version.frameworkAge}), ${version.frameworkDate}'
......
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