KyleFromKitware (Kyle Edwards)
- Login: KyleFromKitware
- Registered on: 05/19/2022
- Last sign in: 05/20/2022
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 0 | 0 |
Activity
05/20/2022
-
07:25 PM Ruby Bug #16829: Exceptions raised from within an enumerated method lose part of their stacktrace
- > is it feasible to improve stacktraces raised within fibers?
As a more general solution, I'm wondering if exceptions could have not just a single stack trace, but an append-only list of stack traces that gets appended every time the ...
05/19/2022
-
08:05 PM Ruby Bug #16829: Exceptions raised from within an enumerated method lose part of their stacktrace
- For anyone looking for a workaround, this seems to work pretty well:
``` ruby
# assume `enum` is an `Enumerator`
begin
enum.next
rescue StopIteration
raise
rescue
$!.set_backtrace($!.backtrace + caller)
raise
end
```
This will ... -
05:07 PM Ruby Bug #16829: Exceptions raised from within an enumerated method lose part of their stacktrace
- Came here to say that I ran into this same issue and found it very frustrating. I had to go over a lot of code to find the function that called `Enumerator#next`. Would love to see better stack traces in the future.