The recent merge causes LLDB to crash when it tries to show an expression value (with result.description).
This PR replaces all uses of result.description with a few different non-crashing alternatives:
When we know the type, of the value, use GetSignedInt32().
When GetDescription() works, use that.
In a case where even GetDescription() crashes, print a message telling the user that they can show the value using print(). I made https://github.com/google/swift-jupyter/issues/112 to track fixing this.
The recent merge causes LLDB to crash when it tries to show an expression value (with
result.description
).This PR replaces all uses of
result.description
with a few different non-crashing alternatives:GetSignedInt32()
.GetDescription()
works, use that.GetDescription()
crashes, print a message telling the user that they can show the value usingprint()
. I made https://github.com/google/swift-jupyter/issues/112 to track fixing this.