-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[CP] Ignore invalid description in vswhere.exe JSON output #107328
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
[CP] Ignore invalid description in vswhere.exe JSON output #107328
Conversation
|
This pull request was opened from and to a release candidate branch. This should only be done as part of the official Flutter release process. If you are attempting to make a regular contribution to the Flutter project, please close this PR and follow the instructions at Tree Hygiene for detailed instructions on contributing to Flutter. Reviewers: Use caution before merging pull requests to release branches. Ensure the proper procedure has been followed. |
christopherfujino
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code lgtm
a80240e to
f19609a
Compare
…er#106836) The `flutter doctor` command uses `vswhere.exe` to verify the Visual Studio installation. This `vswhere.exe` is known to encode its output incorrectly. This is problematic as the `description` property is localized, and in certain languages this results in invalid JSON due to the incorrect encoding. This change introduces a fallback to our `vswhere.exe` output parsing logic: if parsing JSON fails, remove the `description` property and retry parsing the JSON. This fix was also tested on the outputs provided here: flutter#106601 (comment) Addresses flutter#106601
f19609a to
75abe1c
Compare
|
@muditatandon @CaseyHillers Any idea what is going on with these failing tests? |
|
The web tests are timing out (likely due to something crashing) |
|
Linux build_tests_1_2 failing because ninja not found (https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8808913699168063233/+/u/run_test.dart_for_build_tests_shard_and_subshard_1_2/test_stdout): I wonder if this dependency changed upstream since the branch? |
itsjustkevin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The
flutter doctor,flutter build, andflutter runcommands fail on Windows using certain locales when using the latest version of Visual Studio. This cherrypicks the fix to the latest stable release: dcbdff0 from #106836.Cherry pick issue: #106920
Fixes: #106601
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.