Skip to content
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

flutter_plugins analyze step failed on framework ToT, video_player Missing case clause for 'contentUri'. #89792

Closed
jmagman opened this issue Sep 9, 2021 · 15 comments
Assignees
Labels
p: video_player The Video Player plugin P0 Critical issues such as a build break or regression package flutter/packages repository. See also p: labels.

Comments

@jmagman
Copy link
Member

jmagman commented Sep 9, 2021

�[36mRunning for video_player/video_player...�[0m
Running command: "dart analyze --fatal-infos" in /b/s/w/ir/x/t/flutter_plugins.OSXWBR/packages/video_player/video_player
Analyzing video_player...

warning - lib/video_player.dart:279:5 - Missing case clause for 'contentUri'. Try adding a case clause for the missing constant, or adding a default clause. - missing_enum_constant_in_switch

1 issue found.
�[36mRunning for video_player_platform_interface...�[0m
Running command: "dart analyze --fatal-infos" in /b/s/w/ir/x/t/flutter_plugins.OSXWBR/packages/video_player/video_player_platform_interface
Analyzing video_player_platform_interface...
No issues found!
�[36mRunning for video_player_web...�[0m
Running command: "dart analyze --fatal-infos" in /b/s/w/ir/x/t/flutter_plugins.OSXWBR/packages/video_player/video_player_web
Analyzing video_player_web...

warning - lib/video_player_web.dart:74:5 - Missing case clause for 'contentUri'. Try adding a case clause for the missing constant, or adding a default clause. - missing_enum_constant_in_switch

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8836535742066526897/+/u/run_test.dart_for_flutter_plugins_shard_and_subshard_analyze/test_stdout

Caused by flutter/plugins#4307

@jmagman jmagman added plugin p: video_player The Video Player plugin P0 Critical issues such as a build break or regression labels Sep 9, 2021
@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

@stuartmorgan @byunme

@stuartmorgan
Copy link
Contributor

Unfortunately we have an all-local build to catch build errors from updates to dependencies, but not an all-local analyze. I'll need to think about a general solution for that.

For the specific issue, rebasing the other PR on master (and removing the path override) and then landing it to fix forward is probably the easiest solution. It's already approved.

I'm not at my computer, but I can do it later if nobody can do it before then.

@stuartmorgan
Copy link
Contributor

flutter/plugins#4261 is the second PR.

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

I'm not at my computer, but I can do it later if nobody can do it before then.

I can do that.

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

Working on the merge conflicts now, the PR hasn't been rebased in awhile.

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

flutter/plugins#4261 is the second PR.

This doesn't fix video_player_web. Who should take a look at that? I added it as a no-op to flutter/plugins#4330

@stuartmorgan
Copy link
Contributor

Thanks for cleaning up my mess @jmagman !

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

Thanks for cleaning up my mess @jmagman !

Well you don't get to claim any monopoly on mess, it's all our mess! Mess solidarity!

@stuartmorgan
Copy link
Contributor

Well you don't get to claim any monopoly on mess

It's hard not to feel a significant amount of ownership here when I thought "hmm, won't adding an enum cause issues for case statements?" before deciding that the CI would have flagged that and approving it 😒

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

flutter/plugins#4330 is in, I merged a flutter/flutter commit to kick the tree.

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

I merged a flutter/flutter commit to kick the tree.

Although I did it too soon, the plugin hasn't been published yet. Will merge another once it does.

@byunme
Copy link

byunme commented Sep 9, 2021

So sorry for all the trouble!

@jmagman
Copy link
Member Author

jmagman commented Sep 9, 2021

No worries @byunme this definitely wasn't your fault, the non-breaking interface change/analysis error is a process issue, not anything to do with your change.

@jmagman
Copy link
Member Author

jmagman commented Sep 10, 2021

The test is still failing due to an unrelated plugins tooling issue tracked in #89805. It's been turned off for now while that can be investigated.

Plugin tree is green again, and the plugins roll with the fix has been merged #89803.
Closing this as fixed.

@github-actions
Copy link

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 flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2021
@flutter-triage-bot flutter-triage-bot bot added the package flutter/packages repository. See also p: labels. label Jul 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p: video_player The Video Player plugin P0 Critical issues such as a build break or regression package flutter/packages repository. See also p: labels.
Projects
None yet
Development

No branches or pull requests

3 participants