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

Owner: Nobody
Requestors: drforr [at] pobox.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



To: Rakudobug <rakudobug [...] perl.org>
Date: Sat, 30 May 2015 15:43:58 +0200
From: drforr [...] pobox.com
Subject: Possible include path issue
Download (untitled) / with headers
text/plain 1.3k
This is a touch complex, but with the following directory layout (files attached) perl6-readline/lib/Readline.pm perl6-debugger/lib/Debugger/UI/CommandLine.pm (please note it's an exact copy of Debugger::UI::CommandLine but with 'use Readline;' added.) The command-line invocation: perl6-debugger/$ perl6-debug-m -I../perl6-readline/lib -Ilib -e0 throws the following error from lib/Readline.pm which is not present when I run perl6-readline/t/02-core.t or perl6-readline/examples/echo.pl6 directly. Of course, adding the semicolon is trivial, but the fact that the p6 compiler only complained in the presence of multiple -Ilib paths was a revelation. --cut here-- perl6-debug-m -Ilib -I../perl6-readline/lib -e 0 ===SORRY!=== Error while compiling /home/jgoff/Documents/perl6-debugger/../perl6-readline/lib/Readline.pm Strange text after block (missing semicolon or comma?) at /home/jgoff/Documents/perl6-debugger/../perl6-readline/lib/Readline.pm:663 ------> my class time_t is repr('CPointer') { }⏏ # XXX probably already a native type. expecting any of: infix infix stopper statement end statement modifier statement modifier loop from module Debugger::UI::CommandLine (/home/jgoff/Documents/perl6-debugger/lib/Debugger/UI/CommandLine.pm:6) from -e:1 --cut here--
Download CommandLine.pm
text/x-perl 26k

Message body is not shown because sender requested not to inline it.

Download Readline.pm
text/x-perl 101.9k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 1.7k
On 2015-05-30 06:44:44, drforr@pobox.com wrote: Show quoted text
> This is a touch complex, but with the following directory layout (files > attached) > > perl6-readline/lib/Readline.pm > perl6-debugger/lib/Debugger/UI/CommandLine.pm (please note it's an exact > copy of Debugger::UI::CommandLine but with 'use Readline;' added.) > > The command-line invocation: > > perl6-debugger/$ perl6-debug-m -I../perl6-readline/lib -Ilib -e0 > > throws the following error from lib/Readline.pm which is not present > when I run perl6-readline/t/02-core.t or > perl6-readline/examples/echo.pl6 directly. > Of course, adding the semicolon is trivial, but the fact that the p6 > compiler only complained in the presence of multiple -Ilib paths was a > revelation. > > --cut here-- > perl6-debug-m -Ilib -I../perl6-readline/lib -e 0 > ===SORRY!=== Error while compiling > /home/jgoff/Documents/perl6-debugger/../perl6-readline/lib/Readline.pm > Strange text after block (missing semicolon or comma?) > at > /home/jgoff/Documents/perl6-debugger/../perl6-readline/lib/Readline.pm:663 > ------> my class time_t is repr('CPointer') { }⏏ # XXX probably already > a native type. > expecting any of: > infix > infix stopper > statement end > statement modifier > statement modifier loop > from module Debugger::UI::CommandLine > (/home/jgoff/Documents/perl6-debugger/lib/Debugger/UI/CommandLine.pm:6) > from -e:1 > --cut here--
I just tried the following with a fresh Rakudo (2015.06-227-g1b537b9 on Moar 2015.06-91-gf090305): cd /tmp git clone github:drforr/perl6-readline git clone github:jnthn/rakudo-debugger perl6-debugger cd perl6-readline perl6-debug-m -I../perl6-readline/lib -Ilib -e0 ...and the debugger started fine. Is that what you were seeing break?


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