flutter/packages/flutter_tools/test/general.shard/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_test.dart [flutter_tools] migrate more unit tests to null safety (#106153) 2022-06-17 21:34:27 -07:00
plugins_test.dart Remove dead code in tools tests (#104567) 2022-05-25 12:48:17 -07:00
visual_studio_test.dart Ignore invalid description property in vswhere.exe JSON output (#106836) 2022-06-30 16:15:20 -07:00
visual_studio_validator_test.dart [flutter_tools] rename local functions with _s (#102688) 2022-04-27 16:19:07 -07:00
windows_device_test.dart Migrate some test files to null safety (#104469) 2022-05-24 16:53:08 -07:00
windows_workflow_test.dart Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00