This queue is for tickets about the Regexp-Debugger CPAN distribution.

Report information
The Basics
Id:
123146
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
haukex [...] zero-g.net
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
0.002001
Fixed in:
(no value)



Subject: Regexp::Debugger+PPR dies with "Eval-group not allowed at runtime"
Hi, $ perl -MPPR -MRegexp::Debugger -E '""=~m{\A(?&PerlDocument)\Z$PPR::GRAMMAR}x' Eval-group not allowed at runtime, use re 'eval' in regex m/(?#R_d:0)(?>\A(?{Regexp::Debugger::_reset_debugger_state()})(?!)|\G(?{Regexp::Debugger::_reset_debugger_state_rematch.../ at (eval 45) line 23034. This is a standard build Perl 5.26.0 on Linux with PPR 0.000013 and Regexp::Debugger 0.002001; also tested with Perl 5.22, same problem. Just to play it safe, I also copied down your first example from your talk "Three Little Words", unfortunately the same error. Regards, -- Hauke D
Subject: Re: [rt.cpan.org #123146] Regexp::Debugger+PPR dies with "Eval-group not allowed at runtime"
Date: Thu, 28 Sep 2017 22:01:37 +1000
To: bug-Regexp-Debugger@rt.cpan.org
From: Damian Conway <damian@conway.org>
Thanks for the report.

This issue is due to changes in the way Perl parses regexes.
The change occurred between Perl 5.16 and 5.18.
I have raised the issue with P5P but no solution has been
offered. And I cannot find any workaround for the problem.

Basically, this means that any regex that interpolates
code blocks from a variable cannot be Regexp::Debugged
after Perl 5.16. :-(

Sorry,

Damian
Subject: Re: [rt.cpan.org #123146] Regexp::Debugger+PPR dies with "Eval-group not allowed at runtime"
Date: Fri, 29 Sep 2017 10:07:03 +0200
To: bug-Regexp-Debugger@rt.cpan.org
From: Hauke D <haukex@zero-g.net>
Hi, Thanks for the information, that is too bad. Would it have something to do with this P5P thread? https://www.nntp.perl.org/group/perl.perl5.porters/2013/06/msg203770.html Regards, -- Hauke D On 28.09.2017 14:02, damian@conway.org via RT wrote:
Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=123146 > > > Thanks for the report. > > This issue is due to changes in the way Perl parses regexes. > The change occurred between Perl 5.16 and 5.18. > I have raised the issue with P5P but no solution has been > offered. And I cannot find any workaround for the problem. > > Basically, this means that any regex that interpolates > code blocks from a variable cannot be Regexp::Debugged > after Perl 5.16. :-( > > Sorry, > > Damian > >
Subject: Re: [rt.cpan.org #123146] Regexp::Debugger+PPR dies with "Eval-group not allowed at runtime"
Date: Sat, 30 Sep 2017 11:15:20 +1000
To: bug-Regexp-Debugger@rt.cpan.org
From: Damian Conway <damian@conway.org>
> Would it have something to do with this P5P thread?
>
> https://www.nntp.perl.org/group/perl.perl5.porters/2013/06/msg203770.html

That was a separate problem, which has now been resolved.

The deep changes to the regex engine in 5.18 and 5.20 caused
multiple issues with modules that modify regexes as they're
compiled (like Regexp::Grammars and Regexp::Debugger).

Damian


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.