dart-atom / atom-flutter

An Atom plugin for Flutter developers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"flutter analyze" output is not clean on demo project

turnidge opened this issue · comments

I created a new project with Flutter >> Create New Flutter Project.

I then went to the command line and typed "flutter analyze" and got the following output:

turnidge-macpro2:emptyproject turnidge$ flutter analyze
[error] Field declaration HitTestEntry.target cannot be overridden in BoxHitTestEntry. (/Users/turnidge/hackathon/flutter/packages/flutter/lib/src/rendering/box.dart, line 362, col 3)
[error] Field declaration _ResolvingAssetBundle.resolver cannot be overridden in _ResolutionAwareAssetBundle. (/Users/turnidge/hackathon/flutter/packages/flutter/lib/src/widgets/asset_vendor.dart, line 52, col 3)
[error] Field declaration Simulation.tolerance= cannot be overridden in SimulationGroup. (/Users/turnidge/hackathon/flutter/packages/newton/lib/src/simulation_group.dart, line 36, col 3)
FileSystemException: Cannot open file, path = '/var/folders/j0/rc5cgyhn07nd6lt8rwwg5y480004gt/T/flutter-analyze-Z19N5J/main.dart' (OS Error: No such file or directory, errno = 2)
severe: 
Exception:
dart:io                                                             _File.readAsLinesSync
package:flutter_tools/src/commands/analyze.dart 271                 AnalyzeCommand.runInProject.<async>
dart:async                                                          _Completer.completeError
package:flutter_tools/src/commands/analyze.dart 307                 AnalyzeCommand.runInProject.<async>
dart:async                                                          _asyncThenWrapperHelper
package:flutter_tools/src/commands/analyze.dart                     AnalyzeCommand.runInProject
package:flutter_tools/src/commands/flutter_command.dart 61          FlutterCommand.run.<async>
dart:async                                                          Future.Future.microtask
package:flutter_tools/src/commands/flutter_command.dart             FlutterCommand.run
package:args/command_runner.dart 178                                CommandRunner.runCommand.<fn>
dart:async                                                          Future.Future.sync
package:args/command_runner.dart 131                                CommandRunner.runCommand
package:flutter_tools/src/commands/flutter_command_runner.dart 157  FlutterCommandRunner.runCommand
package:args/command_runner.dart 105                                CommandRunner.run.<fn>
dart:async                                                          Future.Future.sync
package:args/command_runner.dart 105                                CommandRunner.run
package:flutter_tools/executable.dart 69                            main.<async>.<fn>.<async>
package:stack_trace                                                 Chain.capture
package:flutter_tools/executable.dart 68                            main.<async>

It seems like flutter analyze output should be empty on the demo project.

Atom 1.5.4, flutter plugin 0.2.1, running on macos.

Is this from the master branch of the flutter repo?

Not sure. I've gone through a lot of different setup permutations over the last couple of days.

I am not able to reproduce this on master. Perhaps it was on the hackathon branch. Closing.