You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What the actual underlying error, which is actually useful:
No value associated with key CodingKeys(stringValue: \"age\", intValue: nil) (\"age\").
To see this error in detail, you have to jump through some hoops and print it in the debugger, when the Xcode test suite should just show you the more descriptive error in the first place:
do{lett:T= decoder.decode(T.self,...)}catch{let _ = error // breakpoint here, po error}
I assume this is as simple as making the `.failureReason` more descriptive. I couldn't find where `DecodingError` was defined in `apple/swift-corelibs-foundation` or I would have checked.
The text was updated successfully, but these errors were encountered:
Can you attach a self-contained project or playground that demonstrates the issue? I'm not sure how to set up the test case such that you'd get this behavior.
Yes, I've attached a reduced test case. Trying to build it has made me realize it only seems to happen in a test environment when failed tests are reported; other environments like Playgrounds or regular debugging do show the appropriate error. My apologies. I've just seen this error before and it never occurred to me that I might have only seen it while testing.
Attachment: Download
Additional Detail from JIRA
md5: 5be1df8769f1d742c91f8fdc5a7e5aec
Issue Description:
What Xcode shows you:
What the actual underlying error, which is actually useful:
To see this error in detail, you have to jump through some hoops and print it in the debugger, when the Xcode test suite should just show you the more descriptive error in the first place:
I assume this is as simple as making the `.failureReason` more descriptive. I couldn't find where `DecodingError` was defined in `apple/swift-corelibs-foundation` or I would have checked.
The text was updated successfully, but these errors were encountered: