Closed awhitford closed 4 years ago
I'm having the same but using include: package:pedantic/analysis_options.1.9.0.yaml
:
warning • The include file package:pedantic/analysis_options.1.9.0.yaml in /my/project/analysis_options.yaml cannot be found •
analysis_options.yaml:1:11 • include_file_not_found
I think this started after a flutter upgrade
I just did (on the stable channel).
$ flutter --version
Flutter 1.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84f3d28555 (7 days ago) • 2020-10-15 16:26:19 -0700
Engine • revision b8752bbfff
Tools • Dart 2.10.2
I too am using 1.22.2:
Flutter 1.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 84f3d28555 (8 days ago) • 2020-10-15 16:26:19 -0700
Engine • revision b8752bbfff
Tools • Dart 2.10.2
Not sure what could have changed--maybe dev dependencies are being pulled to somewhere different that the analyzer can't find?
@bwilkerson any ideas please?
This looks related: https://github.com/dart-lang/sdk/issues/42910
I figured it out... I needed to add pedantic
also to the pubspec.yaml
in the example
folder. I was getting results from the main package, but when the examples were being processed, that is when the warning emitted.
After adding
pedantic
to a project, I am seeing this warning:The
analysis_options.yaml
is as prescribed:Since I am only using
pedantic
for lints, I added it todev_dependencies
.Note that the rules seem to be working and I am seeing results from
flutter analyze
.However, I noticed that this warning goes away if I move
pedantic
todependencies
. (But I don't really want to because it should not be necessary.) As a result, this warning looks invalid.