sebsto/xcodeinstall

fail to parse list of packages

sebsto opened this issue ยท 1 comments

sebsto commented

Describe the bug
When parsing the download list, xcodeinstall fails with

๐Ÿ›‘ Unknown download error : parsingError(error: Swift.DecodingError.valueNotFound(Swift.Array<Swift.String>, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "downloads", intValue: nil), _JSONKey(stringValue: "Index 1126", intValue: 1126), CodingKeys(stringValue: "files", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "displayName", intValue: nil)], debugDescription: "Cannot get unkeyed decoding container -- found null value instead", underlyingError: nil)))
Please file an error report at https://github.com/sebsto/xcodeinstall/issues/new?assignees=&labels=&template=bug_report.md&title=
๐Ÿ›‘ Unexpected error : parsingError(error: Swift.DecodingError.valueNotFound(Swift.Array<Swift.String>, Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "downloads", intValue: nil), _JSONKey(stringValue: "Index 1126", intValue: 1126), CodingKeys(stringValue: "files", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0), CodingKeys(stringValue: "displayName", intValue: nil)], debugDescription: "Cannot get unkeyed decoding container -- found null value instead", underlyingError: nil)))

To Reproduce

xcodeinstall list -m -x 15 --verbose

Do not forget to

  1. type the exact command you typed, including all inputs and output
  2. run the command with --verbose to collect debugging output

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. macOS 12.5]
  • xcodeinstall version [e.g. 0.1]

Additional context
Add any other context about the problem here.

sebsto commented

fixed by 50939bb