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