From 2b2d7825030741e1c57fe429b8487f8c99dee317 Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Mon, 13 Jun 2016 19:19:35 -0700 Subject: [PATCH] "--watch --flutter-repo" wasn't analyzing flutter (#4548) --- .../lib/src/runner/flutter_command_runner.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart index f4b6792b9b..9dfdd521b5 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart @@ -266,13 +266,18 @@ class FlutterCommandRunner extends CommandRunner { /// Get the entry-points we want to analyze in the Flutter repo. List getRepoAnalysisEntryPoints() { - String rootPath = path.absolute(Cache.flutterRoot); - return [ + final String rootPath = path.absolute(Cache.flutterRoot); + final List result = [ // not bin, and not the root new Directory(path.join(rootPath, 'dev')), new Directory(path.join(rootPath, 'examples')), - new Directory(path.join(rootPath, 'packages')), ]; + // And since analyzer refuses to look at paths that end in "packages/": + result.addAll( + _gatherProjectPaths(path.join(rootPath, 'packages')) + .map/**/((String path) => new Directory(path)) + ); + return result; } bool _checkFlutterCopy() {