mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Emit doctor error if Flutter SDK path contains spaces (#10477)
Should be reverted when https://github.com/flutter/flutter/issues/6577 is fixed.
This commit is contained in:
parent
104725f384
commit
fe520201b8
@ -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}'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user