rrousselGit / state_notifier

ValueNotifier, but outside Flutter and with some extra perks
MIT License
311 stars 28 forks source link

Analyzer goes mental after upgrade to Flutter 2.5 and Dart 2.14 #53

Closed arnoutvandervorst closed 3 years ago

arnoutvandervorst commented 3 years ago

After the upgrade to Flutter 2.5 and Dart 2.14, I get analysis errors on every file I open and errors when running the build_runner. The analysis server instrumentation log reveals this error on every single file:

1631182843704:Ex:Analysis failed:: /Users/arnoutvandervorst/Projects/newme_app/test/widget_test.dart context:: exception_20210909_122043_559 Invalid argument(s):: Unexpectedly not indexed:: Notifier extends StateNotifier

0 _LocalElementIndexer.[] (package::analyzer/src/summary2/bundle_writer.dart::944::10)

Can it be related to this package and the upgrade to Dart 2.14?

rrousselGit commented 3 years ago

It's highly unlikely to be state_notifier's fault

Try flutter clean, upgrading your dependencies and restarting your IDE

arnoutvandervorst commented 3 years ago

https://github.com/dart-lang/sdk/issues/47171

rrousselGit commented 3 years ago

Looks like this is a Dart bug. So I'll close this since there's nothing I can do

Thanks for the report.