From: Patrick R. Michaud via RT
The wikibooks example is wrong, Rakudo is correct here.
(To return the number of elements, use prefix:<+>, not the $-
contextualizer.)
Actually, that whole section in wikibooks seems to be a little "off"...
"@()" doesn't mean "convert to array", for example.
Closing ticket.
Pm
From: Dagur
# New Ticket Created by Dagur
# Please include the string: [perl #118501]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118501 >
$ perl6
> sub a is export { 'a' }
sub a() { ... }
> say EXPORT::ALL
Error while compiling block (source text: "say EXPORT::ALL\n"): Error
while compiling op call: Error while compiling block : Error while
compiling op call (source text: "say EXPORT::ALL\n"): Null PMC access in
find_method('handle')
$ perl6 --version
This is perl6 version 2013.05-251-gd3ae978 built on parrot 5.2.0 revision
RELEASE_5_2_0
From: Dagur
# New Ticket Created by Dagur
# Please include the string: [perl #118505]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118505 >
> constant %a is export = 5 => 5
5 => 5
> constant %a is export = 5 => 5
Null PMC access in get_string()
On a related note, it's possible to re-declare constants. Not sure if
that's a bug or not.
> constant %b = 1 => 1
1 => 1
> constant %b = 1 => 2
1 => 2
From: Patrick R. Michaud via RT
> So either STORE_AT_KEY for typed hashes should stringify objects
> silently if the keytype is Str, like untyped hashes do. Or untyped
> hashes should *not* automatically stringify objects.
Untyped hashes are {Str(Any)} -- see S09:1187:
The standard Hash:
my %hash;
is really short for:
my Mu %hash{Str(Any)};
This accounts for the difference between the two; an untyped hash will
accept Any key and coerce it to a Str, while a hash declared {Str} will
only accept Str values as keys.
Closing ticket,
Pm
From: Dagur
# New Ticket Created by Dagur
# Please include the string: [perl #118407]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118407 >
> say slurp("/tmp/a.pm6")
sub abc() is export { say "hello" }
This works (given that it's NYI)
> require("/tmp/a.pm6") "&abc";
abc();
Trying to import symbols &abc from '/tmp/a.pm6', but it does not export
anything
Without the ampersand however,
> require("/tmp/a.pm6") "abc"; abc();
Error while compiling block (source text: "require(\"/tmp/a.pm6\")
\"abc\"; abc();\n"): Error while compiling op call: Error while compiling
block : Error while compiling op call: Null PMC access in
find_method('handle')
From: Brian Wisti via RT
On Thu Jul 29 09:30:31 2010, ambs wrote:
> Hello.
>
> Under Mac OS X, if installing rakudo (star) under /opt/rakudo, for
> instance, and after adding it to the PATH, we get:
>
> [ambs@rachmaninoff ~]$ perl6
> dyld: Library not loaded:
> /Users/ambs/tmp/rakudo-star-2010.07/parrot-
2.6.0/blib/lib/libparrot.dylib
> Referenced from: /opt/rakudo/bin/perl6
> Reason: image not found
> Trace/BPT trap
>
> This is easily solved adding /opt/rakudo/lib to the
> DYLD_FALLBACK_LIBRARY_PATH.
>
> But it would be great if rakudo could take care of referring the
> libraries in their destination path.
>
> Unfortunately I am not aware how this can be done, but I would love
to.
>
> All the best
> Alberto
I know this is an older ticket, but I noticed it while scrubbing through
the bug list.
FWIW, I do not see this issue with Rakudo Star 2013.05 on OS X 10.8.
$ perl Configure.pl --prefix=/opt/rakudo --gen-parrot
$ make && make rakudo-test && sudo make install
$ /opt/rakudo/bin/perl6
> "Hello".say
Hello
I can't vouch for other versions of Rakudo or other versions of OS X.
From: Will Coleda via RT
On Wed Nov 30 10:47:25 2011, cognominal wrote:
> S04:1292 3c53f87 say "The C<Whatever> type is derived from C<Any> but
> nothing elseis derived from it."I infer from it that deriving from it
> should result in an error. This is not the case.
>
> > class A is Whatever { }
>
> A()
>
i disagree that saying nothing else derives from it means that nothing else CAN derive from it.
14:00 < jnthn> [Coke]: agree
Rejecting ticket.
--
Will "Coke" Coleda
From: Will Coleda via RT
On Sun Apr 08 08:03:22 2012, spidermario@free.fr wrote:
> With Rakudo 2012.03-53-g119fe3b (commit
> 119fe3b5b85fe680aa1a7ea29042a5714e63a402), the following code fails:
>
> sub id(Any ::T $x) returns T {
> $x
> }
>
> say id 42;
>
> with the following error message:
>
> Type check failed for return value
> in sub id at testcase.pl:1
> in block <anon> at testcase.pl:5
>
> ::T correctly contains Int, though.
Current behavior:
$ cat a.pm
sub id(Any ::T $x) returns T {
$x
}
say id 42;
$ ./perl6 a.pm
Cannot type check against type variable T
in any type_check at src/gen/Metamodel.nqp:305
in sub id at a.pm:2
in block at a.pm:5
--
Will "Coke" Coleda
From: Will Coleda via RT
On Mon Oct 01 04:30:56 2012, bbkr wrote:
> On 2012.09 Star it is:
>
> perl
> returns
> count
> Unmarshallable foreign language value passed for parameter 'obj'
> in method dispatch:<hyper> at src/gen/CORE.setting:936
> in block at -e:1
with the latest rakudo compiler, this now returns:
./perl6 -e 'my $x = :(Int); $x.^methods>>.say'
perl
returns
count
<anon>
<anon>
ACCEPTS
params
arity
<anon>
<anon>
Closable with tests.
--
Will "Coke" Coleda
From: Will Coleda via RT
On Thu Nov 15 19:25:59 2012, coke wrote:
> On Mon Aug 02 12:55:42 2010, moritz wrote:
> > FWIW, on my machine parrot doesn't even install with a space in the
> > prefix path:
> >
> > http://trac.parrot.org/parrot/ticket/1716
> >
> > I guess there's not much point in trying to tackle this issue until
> > parrot gets some sanity.
>
> This seems to now fail when running nqp:
>
> Command failed (status 512): /Users/coke/perl5/perlbrew/perls/perl-
> 5.16.0_THREAD/bin/perl
> Configure.pl --with-parrot=/tmp/a space/bin/parrot --make-install
>
> The argument to --with-parrot needs to be quoted.
I've updated parrot and nqp to better handle processing and passing quoting path arguments.
An update to rakudo-star that pulls the latest nqp & parrot's should handle this now.
Leaving open until R* is updated.
--
Will "Coke" Coleda
From: Will Coleda via RT
On Tue Jun 04 13:03:04 2013, coke wrote:
> On Tue Jun 04 09:59:57 2013, nicholas wrote:
> > On Tue, Jun 04, 2013 at 08:54:14AM -0700, Will Coleda via RT wrote:
> > > FYI:
> > >
> > > $ java -version
> > > java version "1.7.0_10"
> > > Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
> > > Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
> >
> > Not that I have a great idea on this, but "out of memory" on which
> step?
> > Compiling the setting?
> >
> > and what platform - x86_64 (GNU) Linux?
> > How much RAM?
> > If you use -Xmx to set a larger heap size, does it work?
> >
> > Nicholas Clark
>
> From the original post:
>
> nqp/install/nqp --target=classfile --output=blib/Perl6/Grammar.class
> --encoding=utf8 \
> src/Perl6/Grammar.nqp
>
> That's the step that dies. If I add
>
> -Xms500m -Xmx2g
>
> (copied from elsewhere in rakudo-java's Makefile), and add it to the
> command line there, the
> build works.
>
> This probably isn't something we should add by default to the
> installed nqp, but we should
> consider allowing this to be a command line option to nqp's configure
> step. (and add a
> warning in the nqp readme)
Added a note to the README for now; Closing ticket.
--
Will "Coke" Coleda
From: Will Coleda
# New Ticket Created by Will Coleda
# Please include the string: [perl #118313]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118313 >
Biggest blocker to running "make test" with rakudo-java right now:
$ ./perl6 -e 'use v6'
Unhandled exception: Method 'backtrace' not found
in print_exception
in <anon>
in command_eval
in command_eval
in command_line
in MAIN
in
in
(also need a backtrace, but that's another ticket)
--
Will "Coke" Coleda
From: Will Coleda via RT
On Tue Jun 04 09:59:57 2013, nicholas wrote:
> On Tue, Jun 04, 2013 at 08:54:14AM -0700, Will Coleda via RT wrote:
> > FYI:
> >
> > $ java -version
> > java version "1.7.0_10"
> > Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
> > Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
>
> Not that I have a great idea on this, but "out of memory" on which step?
> Compiling the setting?
>
> and what platform - x86_64 (GNU) Linux?
> How much RAM?
> If you use -Xmx to set a larger heap size, does it work?
>
> Nicholas Clark
From the original post:
nqp/install/nqp --target=classfile --output=blib/Perl6/Grammar.class
--encoding=utf8 \
src/Perl6/Grammar.nqp
That's the step that dies. If I add
-Xms500m -Xmx2g
(copied from elsewhere in rakudo-java's Makefile), and add it to the command line there, the
build works.
This probably isn't something we should add by default to the installed nqp, but we should
consider allowing this to be a command line option to nqp's configure step. (and add a
warning in the nqp readme)
--
Will "Coke" Coleda
From: Nicholas Clark
On Tue, Jun 04, 2013 at 08:54:14AM -0700, Will Coleda via RT wrote:
> FYI:
>
> $ java -version
> java version "1.7.0_10"
> Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
Not that I have a great idea on this, but "out of memory" on which step?
Compiling the setting?
and what platform - x86_64 (GNU) Linux?
How much RAM?
If you use -Xmx to set a larger heap size, does it work?
Nicholas Clark
From: Will Coleda via RT
FYI:
$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
From: Saurabh Kumar
Patrick R. Michaud writes:
> The parrot-nqp.c file is generated by the pbc_to_exe program, which
> contains the source lines referenced here. The source for pbc_to_exe
> is in tools/dev/ .
>
> HTH,
>
> Pm
Hi,
Thanks for that. Adding context to the problem, the bug is that when I
run tests for parrot-libgit2, the tests fail but the process still
returns a zero exit code. Its not critical but getting proper failure
reports from travis would be nice.
Running gdb, it appears that the execution of the tests take place here:
https://github.com/parrot/parrot/blob/master/src/scheduler.c#L93
but no exit code propagates from here.
> On Sat, Jun 01, 2013 at 12:46:46PM -0500, Jonathan "Duke" Leto wrote:
>> Howdy,
>>
>> I think my GSoC student has possibly found a bug in parrot-nqp. I
>> won't have much time during YAPC::NA to help him.
>>
>> Could anybody step in and help him debug this issue?
>>
>> Duke
>>
>>
>> ---------- Forwarded message ----------
>> From: Saurabh Kumar <saurabhgeek92@gmail.com>
>> Date: Sat, Jun 1, 2013 at 11:55 AM
>> Subject: Re: [Passed] letolabs/parrot-libgit2#21 (nciupdate - 4d61364)
>> To: Jonathan Duke Leto <jonathan@leto.net>
>>
>>
>> On Sat, Jun 1, 2013 at 8:12 PM, Jonathan "Duke" Leto <jonathan@leto.net> wrote:
>> > Howdy,
>> >
>> > Can you show me where (a link to Github is most useful) where you
>> > think the NQP exit code bug is?
>> >
>> > Thanks!
>>
>> Ah, sorry, I was looking at parrot-nqp.c, which seems to be a
>> generated file, and not in the parrot.git repository. The main
>> function in the C file (Around line 37296) seems to have 7 locations
>> where it can exit. Before the program exits successfully, this is the
>> only location that should give off an error:
>>
>> if (!Parrot_api_run_bytecode(interp, pbc, argsarray)) {
>> show_last_error_and_exit(interp);
>> }
>>
>> Apparently this doesn't show a error. I'm not sure which source file
>> generates this C file now. I will look into it.
>>
>>
>> --
>> Jonathan "Duke" Leto <jonathan@leto.net>
>> Leto Labs LLC http://letolabs.com
>> 209.691.DUKE http://duke.leto.net
>> @dukeleto
--
Saurabh Kumar
From: Timo Paulssen
# New Ticket Created by Timo Paulssen
# Please include the string: [perl #118263]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118263 >
In this code
role Command {
method execute { ... }
}
class EchoCommand is Command {
method execute(Str $echostring) { shell "echo '$echostring'" }
}
gives the following error:
===SORRY!===
Method 'execute' must be implemented by Command because it is required by a role
at foobar.p6:6
------>
It would be cool if it would acknowledge, that there is a message, but the
signatures don't match.
From: Will Coleda
# New Ticket Created by Will Coleda
# Please include the string: [perl #118287]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118287 >
Now that this has landed on the nom branch:
Using rakudo/nom @ 2367dad -
$ make
nqp/install/nqp --target=classfile --output=blib/Perl6/Grammar.class
--encoding=utf8 \
src/Perl6/Grammar.nqp
java.lang.OutOfMemoryError: Java heap space
in dump
in classfile
in
in compile
in eval
in evalfiles
in command_eval
in command_line
in MAIN
in
in make: *** [blib/Perl6/Grammar.class] Error 1
$ nqp/install/nqp --version
This is nqp version 2013.05-151-gb0d3b9c built on JVM
--
Will "Coke" Coleda
From: Will Coleda
# New Ticket Created by Will Coleda
# Please include the string: [perl #118285]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118285 >
Analogous to Configure.pl's option.
Currently requires a pre-installed nqp invoked with --with-nqp
--
Will "Coke" Coleda