flutter/packages/flutter_tools/test
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
..
commands.shard plugin_ffi warn about lack of platform support (#106813) 2022-06-29 10:29:11 -07:00
data "Migrate" dummy packages to null safety (#84013) 2021-06-04 22:14:03 -07:00
general.shard Ignore invalid description property in vswhere.exe JSON output (#106836) 2022-06-30 16:15:20 -07:00
host_cross_arch.shard continue->next in Ruby script (#104296) 2022-05-23 18:43:05 -07:00
integration.shard [Windows] Flow version information to the build output (#106145) 2022-06-27 10:45:56 -07:00
src [flutter_tools] update test/src to null safety (#106064) 2022-06-16 16:48:03 -07:00
web.shard feat(tools): Arbitrary browser flags (closes #65575) (#104935) 2022-06-24 10:14:08 -07:00