[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. |
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? |
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.