Skip Menu |
Report information
Id: 132377
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: tbrowder <tom.browder [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag:
  • Bug
  • POD
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: "rakudobug [...] perl.org" <rakudobug [...] perl.org>
Subject: [BUG][POD] tables inside =begin/=end comment pairs cause exception
From: Tom Browder <tom.browder [...] gmail.com>
Date: Mon, 30 Oct 2017 14:23:48 +0000
Download (untitled) / with headers
text/plain 187b
The following pod causes an exception 

=begin comment
=begin table
a | b | c
=end table
=end comment

If the =begin/=end table lines are indented by one space the exception is not thrown

To: "Tom Browder (via RT)" <perl6-bugs-followup [...] perl.org>
Date: Mon, 30 Oct 2017 15:53:37 +0100
Subject: Re: [perl #132377] [BUG][POD] tables inside =begin/=end comment pairs cause exception
From: Elizabeth Mattijsen <liz [...] dijkmat.nl>
Download (untitled) / with headers
text/plain 589b
A —ll-exception stacktrace would be useful in such a case :-) Show quoted text
> On 30 Oct 2017, at 15:24, Tom Browder (via RT) <perl6-bugs-followup@perl.org> wrote: > > # New Ticket Created by Tom Browder > # Please include the string: [perl #132377] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=132377 > > > > The following pod causes an exception > > =begin comment > =begin table > a | b | c > =end table > =end comment > > If the =begin/=end table lines are indented by one space the exception is > not thrown
Date: Mon, 30 Oct 2017 15:20:21 +0000
To: Elizabeth Mattijsen <liz [...] dijkmat.nl>, "Tom Browder (via RT)" <perl6-bugs-followup [...] perl.org>
From: Tom Browder <tom.browder [...] gmail.com>
Subject: Re: [perl #132377] [BUG][POD] tables inside =begin/=end comment pairs cause exception
Download (untitled) / with headers
text/plain 150b
On Mon, Oct 30, 2017 at 09:53 Elizabeth Mattijsen <liz@dijkmat.nl> wrote:
Show quoted text
A —ll-exception stacktrace would be useful in such a case :-)

WILCO!
Download (untitled) / with headers
text/plain 217b
On Mon, 30 Oct 2017 08:21:04 -0700, tbrowder wrote: Show quoted text
> On Mon, Oct 30, 2017 at 09:53 Elizabeth Mattijsen <liz@dijkmat.nl> wrote: >
> > A —ll-exception stacktrace would be useful in such a case :-)
> > > WILCO!
Subject: prob.log
Download prob.log
text/x-log 2.8k
Expected "=end comment" to terminate "=begin comment"; found "=end table" instead. at SETTING::src/core/Exception.pm:57 (/usr/local/rakudo.d/share/perl6/runtime/CORE.setting.moarvm:throw) from src/Perl6/World.nqp:4630 (/usr/local/rakudo.d/share/nqp/lib/Perl6/World.moarvm:throw) from src/Perl6/Grammar.nqp:272 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:typed_panic) from src/Perl6/Grammar.nqp:910 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:pod_block:sym<delimited_comment>) from gen/moar/stage2/QRegex.nqp:1721 (/usr/local/rakudo.d/share/nqp/lib/QRegex.moarvm:!protoregex) from <unknown>:1 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:pod_block) from <unknown>:1 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:pod_content_toplevel) from <unknown>:1 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:unv) from <unknown>:1 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:_ws) from src/Perl6/Grammar.nqp:630 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:ws) from src/Perl6/Grammar.nqp:1237 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:statementlist) from gen/moar/stage2/NQPHLL.nqp:1105 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:LANG) from src/Perl6/Grammar.nqp:1676 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:FOREIGN_LANG) from src/Perl6/Grammar.nqp:1201 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:comp_unit) from src/Perl6/Grammar.nqp:508 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Grammar.moarvm:TOP) from gen/moar/stage2/QRegex.nqp:2330 (/usr/local/rakudo.d/share/nqp/lib/QRegex.moarvm:parse) from gen/moar/stage2/NQPHLL.nqp:1864 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:parse) from gen/moar/stage2/NQPHLL.nqp:1780 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:execute_stage) from gen/moar/stage2/NQPHLL.nqp:1813 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:run) from gen/moar/stage2/NQPHLL.nqp:1816 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:) from gen/moar/stage2/NQPHLL.nqp:1802 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:compile) from gen/moar/stage2/NQPHLL.nqp:1511 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:eval) from gen/moar/stage2/NQPHLL.nqp:1757 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:evalfiles) from gen/moar/stage2/NQPHLL.nqp:1682 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:command_eval) from src/Perl6/Compiler.nqp:42 (/usr/local/rakudo.d/share/nqp/lib/Perl6/Compiler.moarvm:command_eval) from gen/moar/stage2/NQPHLL.nqp:1617 (/usr/local/rakudo.d/share/nqp/lib/NQPHLL.moarvm:command_line) from gen/moar/main.nqp:47 (/usr/local/rakudo.d/share/perl6/runtime/perl6.moarvm:MAIN) from gen/moar/main.nqp:38 (/usr/local/rakudo.d/share/perl6/runtime/perl6.moarvm:<mainline>) from <unknown>:1 (/usr/local/rakudo.d/share/perl6/runtime/perl6.moarvm:<main>) from <unknown>:1 (/usr/local/rakudo.d/share/perl6/runtime/perl6.moarvm:<entry>)
Subject: prob.p6
Download prob.p6
application/octet-stream 84b

Message body not shown because it is not plain text.

Download (untitled) / with headers
text/plain 574b
On Mon, 30 Oct 2017 09:16:23 -0700, tbrowder wrote: Show quoted text
> On Mon, 30 Oct 2017 08:21:04 -0700, tbrowder wrote:
> > On Mon, Oct 30, 2017 at 09:53 Elizabeth Mattijsen <liz@dijkmat.nl> wrote: > >
> > > A —ll-exception stacktrace would be useful in such a case :-)
> > > > > > WILCO!
$ cat prob.p6 use v6; # an empty table =begin comment =begin table a b c =end table =end comment to duplicate: $ perl6 --ll-exception --doc=Text prob.p6 version: $ perl6 -v This is Rakudo version 2017.09-201-gfa8fe84 built on MoarVM version 2017.09.1-553-ga4fef0b implementing Perl 6.c.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org