-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
analyzer 5.11.0 + dart_style 2.3.0 breaks build_runner build #52159
Comments
\cc @scheglov @munificent I think this incompatibility could affect a large number of users and it may not be clear to users to add an override for the analyzer version since it's often a transitive dependency in these cases. Also tracked at dart-lang/build#3489 |
Workaround. Add to pubspec.yaml: dependency_overrides:
analyzer: 5.10.0 |
@scheglov Should the analyzer version be 6.0.0 (instead of 5.11.0) for this breaking update? |
Apparently it was removed in https://dart-review.googlesource.com/c/sdk/+/290614 |
Please check if this helps. |
Worked for me, thanks! |
Bug: #52159 Change-Id: Ia603e77694d11af1045a94bdf00468d02eb5f6af Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/297980 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
I briefly encountered this error yesterday and now it's working, so I think this worked 👍 |
Works for me too, thanks @scheglov! |
I am using these dependencies to generate a library from a swagger file:
When I try to build via
flutter pub run build_runner build --delete-conflicting-outputs
, I get the following error:Downgrading analyzer to 5.10.0 resolves the issue.
The text was updated successfully, but these errors were encountered: