[perl #123506] [JVM] List Comprehension assigned to capture variable is Nil

2014-12-27 Thread via RT
# New Ticket Created by  Moritz Lenz 
# Please include the string:  [perl #123506]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=123506 >


With rakudo-jvm 2014.12:

$ perl6-j -e 'my \T = ($_ for ^1); say T'
Nil
$

Compare this with

$ perl6-j -e 'say ($_ for ^2)'
0 1

and

$ perl6-m -e 'my \T = ($_ for ^2); say T'
0 1

This breaks Digest::MD5.


[perl #123497] p6doc does not work on OSX (Rakudo * 2014.09)

2014-12-27 Thread via RT
# New Ticket Created by  Gabor Szabo 
# Please include the string:  [perl #123497]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=123497 >


This is a fresh compillation using MoarVM


$ p6doc

/Users/gabor/rakudo-star-2014.09/install/bin/p6doc: line 4: my: command not
found

/Users/gabor/rakudo-star-2014.09/install/bin/p6doc: line 5: has: command
not found

/Users/gabor/rakudo-star-2014.09/install/bin/p6doc: line 6: syntax error
near unexpected token `('

/Users/gabor/rakudo-star-2014.09/install/bin/p6doc: line 6: `multi
method gist(X::P6doc:D:) {'


[perl #123496] [PATCH] Make "use vstring" for v < 5 or v > 6 an error.

2014-12-27 Thread via RT
# New Ticket Created by  Konrad Borowski 
# Please include the string:  [perl #123496]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=123496 >


---
 src/Perl6/Grammar.nqp | 32 +++-
 src/core/Exception.pm |  7 +++
 2 files changed, 30 insertions(+), 9 deletions(-)

diff --git a/src/Perl6/Grammar.nqp b/src/Perl6/Grammar.nqp
index 2000376..69bef42 100644
--- a/src/Perl6/Grammar.nqp
+++ b/src/Perl6/Grammar.nqp
@@ -1576,15 +1576,29 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
 $=[ 'DOC' \h+ ]**0..1
  <.ws>
 [
-|  [ [0] eq '5' }> {
-my $module := $*W.load_module($/, 'Perl5', {}, 
$*GLOBALish);
-do_import($/, $module, 'Perl5');
-$/.CURSOR.import_EXPORTHOW($/, $module);
-} ]?
-[ [0] eq '6' }> {
-$*MAIN   := 'MAIN';
-$*STRICT := 1 if $*begin_compunit;
-} ]?
+|  [
+||  [0] == 5 }> {
+my $module := $*W.load_module($/, 'Perl5', {}, 
$*GLOBALish);
+do_import($/, $module, 'Perl5');
+$/.CURSOR.import_EXPORTHOW($/, $module);
+}
+||  [0] == 6 }> {
+my $version_parts := $;
+my $tokens := +$version_parts;
+my $position := 1;
+while $position < $tokens {
+if $version_parts[$position] != 0 {
+$/.CURSOR.typed_panic: 
'X::Language::Unsupported', version => ~$;
+}
+$position++;
+}
+$*MAIN   := 'MAIN';
+$*STRICT := 1 if $*begin_compunit;
+}
+||  {
+$/.CURSOR.typed_panic: 'X::Language::Unsupported', 
version => ~$;
+}
+]
 | 
 {
 $longname := $;
diff --git a/src/core/Exception.pm b/src/core/Exception.pm
index 1bc3739..4b26419 100644
--- a/src/core/Exception.pm
+++ b/src/core/Exception.pm
@@ -1614,4 +1614,11 @@ my class X::EXPORTHOW::Conflict does X::Comp {
 }
 }
 
+my class X::Language::Unsupported is Exception {
+has $.version;
+method message() {
+"No compiler available for Perl $.version"
+}
+}
+
 # vim: ft=perl6 expandtab sw=4
-- 
2.2.1


[perl #123498] [BUG] Assuming unknown named parameters gives an empty error message

2014-12-27 Thread via RT
# New Ticket Created by  Richard 
# Please include the string:  [perl #123498]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=123498 >


If an unknown parameter is passed to assuming, the resulting error message
is uninformative.

Minimal testcase:
sub (:@a) {}.assuming(named => (True))()

Resulting output: (there is no error message, just a traceback)

  in sub  at foo.pl:1
  in sub CURRIED at src/gen/m-CORE.setting:3478
  in block  at foo.pl:1

Interestingly, if the signature is removed, or is changed to a scalar, then
there isn't even a traceback.
The following produce no traceback or error message

sub {}.assuming(named => (True))()
sub (:$a) {}.assuming(named => True)()

This is perl6 version 2014.09 built on MoarVM version 2014.09


[perl6/specs] c6e6ed: clarify tiebreaking for phasers

2014-12-27 Thread GitHub
  Branch: refs/heads/master
  Home:   https://github.com/perl6/specs
  Commit: c6e6ed443fff6b62d7087e397ca0495c646140e5
  
https://github.com/perl6/specs/commit/c6e6ed443fff6b62d7087e397ca0495c646140e5
  Author: TimToady 
  Date:   2014-12-26 (Fri, 26 Dec 2014)

  Changed paths:
M S04-control.pod

  Log Message:
  ---
  clarify tiebreaking for phasers




Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2014-12-27 Thread Gabor Szabo
When running as

perl6 /Users/gabor/rakudo-star-2014.12.1/install/bin/p6doc

or as

perl6-m /Users/gabor/rakudo-star-2014.12.1/install/bin/p6doc
then it works.


Re: [perl #123497] AutoReply: p6doc does not work on OSX (Rakudo * 2014.09)

2014-12-27 Thread Gabor Szabo
Same in Rakudo Star 2014.12 and 2014.12.1


[perl #123508] 2014.12.1 claims it is 2014.12

2014-12-27 Thread via RT
# New Ticket Created by  Gabor Szabo 
# Please include the string:  [perl #123508]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=123508 >


This is a minor issue, but Rakudo Start 2014.12.1 reports it is actually
2014.12:


$ perl6 -v

This is perl6 version 2014.12 built on MoarVM version 2014.12

$ which perl6

/Users/gabor/rakudo-star-2014.12.1/install/bin/perl6

Gabor


[perl #123507] Can't stat modules/debugger-ui-commandline/lib: No such file or directory

2014-12-27 Thread via RT
# New Ticket Created by  Gabor Szabo 
# Please include the string:  [perl #123507]
# in the subject line of all future correspondence about this issue. 
# https://rt.perl.org/Ticket/Display.html?id=123507 >


During the "make install" phase of Rakudo Start 2014.12.1  (but I think
this is not new)
I saw this message:


Can't stat modules/debugger-ui-commandline/lib: No such file or directory

 at tools/build/module-install.pl line 24.


Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich
Hi, what does `which panda` output? I'd almost say that it cannot find
panda in path, and the apt suggestions fail on your box...


Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich via RT
Hi, what does `which panda` output? I'd almost say that it cannot find
panda in path, and the apt suggestions fail on your box...




Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich
Ahh, it might be possible that panda's state will only be installed
using the Windows MSI on... err, Windows...

I'll check the star tarball on a linux later and report back.


Re: [perl #122839] Rakudo* 2014:08 panda doesn't see bundled modules

2014-12-27 Thread Tobias Leich via RT
Ahh, it might be possible that panda's state will only be installed
using the Windows MSI on... err, Windows...

I'll check the star tarball on a linux later and report back.