-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Dart roll triggers new analyzer hints in google_sign_in_web #76625
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
Comments
I assume we don't control the code generator? If we did, a good solution would be to add an ignore for file comment for this hint to the top of the file. Otherwise, we could add an analysis options file for the google_sign_in_web project that disables the hint (and likely references the default flutter analysis options config). |
What's the analysis_options.yaml file that the analyzer is using? The one in plugins excludes lib/src/generated stuff: https://github.com/flutter/plugins/blob/master/analysis_options.yaml |
From the logs:
I don't know what |
tuneup is a tool that drives the analysis server from the command line. The repo should probably be switched to using |
As a quick mitigation, I'm going to try and add an // ignore at the file level for the two checks that are failing, see if that cures the build. |
Interesting, the repo is using pedantic? We'll want to either add
Changing the top-level analysis options would be a simpler solution. |
We've been trying to reduce the amount of custom analysis_options.yaml files in the repo, that's why I pointed to the global one (that excludes generated and mock files). I've posted a PR with an |
PR here: flutter/plugins#3622 |
Are the messages wrong or just undesired here? |
Maybe this is the analysis_options.yaml file that is being used? https://github.com/flutter/flutter/blob/master/analysis_options.yaml#L39-L45 |
I think it's correct that |
Yeah, these files were generated from typescript .d.ts files a long time ago. I guess new analyzer rules caught more stuff in these old files. We never saw those in flutter/plugins before because they were ignored, but mostly because it seems they're just rolling now to the flutter tool, so flutter/flutter caught it first, I guess? |
I've merged the analyzer tweaks to the generated files, I'm going to check the next plugins -> flutter roll. |
The next run of the roller should include the fix above. |
Confirmed, the fix is here: #76630 |
76630 has just landed in master |
Next engine roll here: #76636 should work |
Is there anything left to track here? Should we close this? |
Not that I am aware of. Let's file a new issue if this wasn't completely solved. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
On the roll here #76620
That includes the Dart roll here flutter/engine#24554
There are new analyzer "info" messages about unused elements, e.g. the class
_RequestOptions
here:https://github.com/flutter/plugins/blob/master/packages/google_sign_in/google_sign_in_web/lib/src/generated/gapi.dart#L228
There are a number of related-looking commits in the Dart roll, e.g.: https://dart.googlesource.com/sdk.git/+/b7849ab93396d4f5a5b9f2a9747620ee80bfc4d1.
We need to either adjust the analyzer to restore the previous behavior, or fix the code generator that generates the gapi.dart file above to suppress the warning.
P0 since this blocks the Engine -> Framework roll.
@srawlins @stuartmorgan
The text was updated successfully, but these errors were encountered: