flutter/packages/flutter_tools/lib/src/windows
Loïc Sharma dcbdff087b
Ignore invalid description property in vswhere.exe JSON output (#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: https://github.com/flutter/flutter/issues/106601#issuecomment-1170138123

Addresses https://github.com/flutter/flutter/issues/106601
2022-06-30 16:15:20 -07:00
..
application_package.dart Add ability for PrebuiltWindowsApp to accept a zip archive. (#103918) 2022-05-17 11:27:11 -07:00
build_windows.dart [Windows] Flow version information to the build output (#106145) 2022-06-27 10:45:56 -07:00
visual_studio_validator.dart Migrate visual_studio_test (#80088) 2021-04-08 19:14:27 -07:00
visual_studio.dart Ignore invalid description property in vswhere.exe JSON output (#106836) 2022-06-30 16:15:20 -07:00
windows_device.dart [flutter_tools] remove UWP tooling (#102174) 2022-04-26 11:19:07 -07:00
windows_workflow.dart Migrate some workflows and doctor validators to null safety (#79807) 2021-04-05 14:00:36 -07:00