Skip Menu |

This queue is for tickets about the Carp-REPL CPAN distribution.

Report information
The Basics
Id: 100314
Status: resolved
Priority: 0/
Queue: Carp-REPL

People
Owner: ether [...] cpan.org
Requestors: DAKKAR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.16
Fixed in: 0.17



Subject: Breaks with newer Devel::StackTrace
Devel::StackTrace 2.00 defaults to returning strings, not refs, in the stack frames. This is to prevent memory leaks all over the place. We don't really care about leaks in a REPL, so we can just turn the refs back on: diff --git i/lib/Devel/REPL/Plugin/Carp/REPL.pm w/lib/Devel/REPL/Plugin/Carp/REPL.pm index dbb9026..70c53c5 100644 --- i/lib/Devel/REPL/Plugin/Carp/REPL.pm +++ w/lib/Devel/REPL/Plugin/Carp/REPL.pm @@ -17,6 +17,7 @@ has stacktrace => ( default => sub { my $stacktrace = Devel::StackTrace::WithLexicals->new( ignore_class => ['Carp::REPL', __PACKAGE__], + unsafe_ref_capture => 1, ); # skip all the Moose metaclass frames
I filed a pull request with the patch above: https://github.com/bestpractical/carp-repl/pull/3
Fixed in 0.17. Thanks!