Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible include path issue #4281

Open
p6rt opened this issue May 30, 2015 · 5 comments
Open

Possible include path issue #4281

p6rt opened this issue May 30, 2015 · 5 comments
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented May 30, 2015

Migrated from rt.perl.org#125290 (status was 'open')

Searchable as RT125290$

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 30, 2015

From @drforr

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--

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 30, 2015

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented May 30, 2015

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jul 10, 2015

From @hoelzro

On 2015-05-30 06​:44​:44, drforr@​pobox.com wrote​:

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?

@p6rt

This comment has been minimized.

Copy link
Author

@p6rt p6rt commented Jul 10, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.