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

"Cannot invoke this object" error while importing an array constant #5221

Closed
p6rt opened this issue Apr 8, 2016 · 8 comments
Closed

"Cannot invoke this object" error while importing an array constant #5221

p6rt opened this issue Apr 8, 2016 · 8 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Apr 8, 2016

Migrated from rt.perl.org#127858 (status was 'resolved')

Searchable as RT127858$

@p6rt
Copy link
Author

p6rt commented Apr 8, 2016

From @grondilu

$ cat > A.pm6
unit module A;

constant @​a is export = map { (1 +< $_) => 1 }, ^3;

$ PERL6LIB=. perl6 -e 'use A; say @​a[1];'
Cannot invoke this object
  in block at /home/grondilu/A.pm6 (A) line 3
  in block <unit> at -e line 1

$ perl6 -e 'module A { constant @​a is export = map { (1 +< $_) => 1 }, ^3;
}; import A; say @​a[1];'
2 => 1

$ perl6 --version
This is Rakudo version 2016.03-88-g600eb53 built on MoarVM version
2016.03-84-g4afd7b6
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Apr 9, 2016

From @jonathanstowe

It looks like the $!block of the MapIter isn't surviving precompilation.

Cannot invoke this object
  at /home/jonathan/devel/perl6/A.pm (A)​:3 (/home/jonathan/devel/perl6/.precomp/CA7216BD3C200837F18683285874D142EF787206.1460060190.82819/D6/D6A0A528F91D5E0AF8AA4B10BF2365224AEC4D53​:)
from gen/moar/m-CORE.setting​:4111 (/home/jonathan/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:pull-one)
from gen/moar/m-CORE.setting​:2381 (/home/jonathan/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:push-exactly)
from gen/moar/m-CORE.setting​:2395 (/home/jonathan/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:push-at-least)
from gen/moar/m-CORE.setting​:14297 (/home/jonathan/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:reify-at-least)

with

Rakudo version 2016.03-98-g61d231c built on MoarVM version 2016.03-84-g4afd7b6

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

From @zoffixznet

Still present in 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5

@p6rt
Copy link
Author

p6rt commented Oct 26, 2016

From @jnthn

Once this is fixed, a workaround in OO​::Monitors can also be removed.

@p6rt
Copy link
Author

p6rt commented Oct 26, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 25, 2017

From @LLFourn

merged patch​: rakudo/rakudo#1111
tests​: https://github.com/perl6/roast/pull/291/files
can be closed

On Fri, Apr 8, 2016 at 7​:16 PM grondilu@​yahoo.fr <
perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by grondilu@​yahoo.fr
# Please include the string​: [perl #​127858]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127858 >

$ cat > A.pm6
unit module A;

constant @​a is export = map { (1 +< $_) => 1 }, ^3;

$ PERL6LIB=. perl6 -e 'use A; say @​a[1];'
Cannot invoke this object
in block at /home/grondilu/A.pm6 (A) line 3
in block <unit> at -e line 1

$ perl6 -e 'module A { constant @​a is export = map { (1 +< $_) => 1 }, ^3;
}; import A; say @​a[1];'
2 => 1

$ perl6 --version
This is Rakudo version 2016.03-88-g600eb53 built on MoarVM version
2016.03-84-g4afd7b6
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Jul 25, 2017

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jul 25, 2017
@p6rt
Copy link
Author

p6rt commented Jul 26, 2017

From @LLFourn

Fix reverted​:
rakudo/rakudo@50d38a1

should be re-opened :)

On Tue, Jul 25, 2017 at 11​:45 PM Lloyd Fournier via RT <
perl6-bugs-followup@​perl.org> wrote​:

merged patch​: rakudo/rakudo#1111
tests​: https://github.com/perl6/roast/pull/291/files
can be closed

On Fri, Apr 8, 2016 at 7​:16 PM grondilu@​yahoo.fr <
perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by grondilu@​yahoo.fr
# Please include the string​: [perl #​127858]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127858 >

$ cat > A.pm6
unit module A;

constant @​a is export = map { (1 +< $_) => 1 }, ^3;

$ PERL6LIB=. perl6 -e 'use A; say @​a[1];'
Cannot invoke this object
in block at /home/grondilu/A.pm6 (A) line 3
in block <unit> at -e line 1

$ perl6 -e 'module A { constant @​a is export = map { (1 +< $_) => 1 },
^3;
}; import A; say @​a[1];'
2 => 1

$ perl6 --version
This is Rakudo version 2016.03-88-g600eb53 built on MoarVM version
2016.03-84-g4afd7b6
implementing Perl 6.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant