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 find method 'run_alt' #4829

Closed
p6rt opened this issue Dec 6, 2015 · 10 comments
Closed

Cannot find method 'run_alt' #4829

p6rt opened this issue Dec 6, 2015 · 10 comments

Comments

@p6rt
Copy link

p6rt commented Dec 6, 2015

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

Searchable as RT126832$

@p6rt
Copy link
Author

p6rt commented Dec 6, 2015

From @zoffixznet

Below is a sample failure output. This happens when I try to install with panda, yet if I clone the repo and manually run the tests, the issue doesn't come up. However, even then, if I try to use a script that uses the module (e.g. bin/nopaste from http://modules.perl6.org/repo/App​::Nopaste), then I, once again, get the "cannot find 'run_alt'" error, except now without a line number.

The line referenced by the error message only has this​: return PASTE-URL ~ from-json( $res.<content> ).<id>;

I grepped rakudo/moar/nqp/panda for "alt_run", and the only place I found any methods of that name are in nqp repo in src/QRegex/Cursor.nqp and src/QRegex/NFA.nqp

$ panda install Pastebin​::Gist
==> Fetching Pastebin​::Gist
==> Building Pastebin​::Gist
==> Testing Pastebin​::Gist
Cannot find method 'run_alt'
  in method paste at /home/zoffix/.panda-work/1449420000_1/lib/Pastebin/Gist.pm6​:31
  in block <unit> at t/01-paste.t​:16

t/01-paste.t ..
Dubious, test returned 1 (wstat 256, 0x100)
No subtests run

Test Summary Report


t/01-paste.t (Wstat​: 256 Tests​: 0 Failed​: 0)
  Non-zero exit status​: 1
  Parse errors​: No plan found in TAP output
Files=1, Tests=0, 9 wallclock secs ( 0.01 usr 0.00 sys + 8.04 cusr 0.51 csys = 8.56 CPU)
Result​: FAIL
The spawned process exited unsuccessfully (exit code​: 1)
  in sub run-and-gather-output at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/C27BE995DC18074CA8F64980F69FEB80BADF5619​:86
  in block at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/A40B6CBA2E85D9DAA45064316EBEB9E42B0036E1​:24
  in sub indir at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/C27BE995DC18074CA8F64980F69FEB80BADF5619​:20
  in method test at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/A40B6CBA2E85D9DAA45064316EBEB9E42B0036E1​:5
  in method install at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/1BC9777EC40C29C8331437E926CD4C13B983C026​:141
  in method resolve at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/1BC9777EC40C29C8331437E926CD4C13B983C026​:219
  in sub MAIN at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/resources/9FF75FC978A3556E531F982825B3EDBBBA834D9E​:18
  in block <unit> at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/resources/9FF75FC978A3556E531F982825B3EDBBBA834D9E​:145

@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

From @jonathanstowe

Yep getting this with the tests of HTTP​::UserAgent​:

[jonathan@​coriolanus http-useragent]$ perl6 --ll-exception -Ilib t/040-request.t

Cannot find method 'run_alt'
  at gen/moar/stage2/QRegex.nqp​:1416 (/home/jonathan/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm​:!alt​:0)
from gen/moar/m-CORE.setting​:34109 (/home/jonathan/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:TOP​:157)

...

@p6rt
Copy link
Author

p6rt commented Dec 13, 2015

From @jonathanstowe

This is rakudo version 2015.11-520-ge160c98 built on MoarVM version 2015.11-44-ge7edb06 implementing Perl v6.b.

On Sun Dec 13 08​:10​:25 2015, jns+bc@​gellyfish.co.uk wrote​:

Yep getting this with the tests of HTTP​::UserAgent​:

[jonathan@​coriolanus http-useragent]$ perl6 --ll-exception -Ilib
t/040-request.t

Cannot find method 'run_alt'
at gen/moar/stage2/QRegex.nqp​:1416
(/home/jonathan/.rakudobrew/moar-
nom/install/share/nqp/lib/QRegex.moarvm​:!alt​:0)
from gen/moar/m-CORE.setting​:34109 (/home/jonathan/.rakudobrew/moar-
nom/install/share/perl6/runtime/CORE.setting.moarvm​:TOP​:157)

...

@p6rt
Copy link
Author

p6rt commented Dec 14, 2015

From @skids

Found this as well, unreleated to panda, and managed to golf it down some​:

$ cat /tmp/catdir.pm6
use File​::Temp; $*SPEC.catdir("/tmp/", "rc");

$ perl6 -e 'use lib "/tmp"; use catdir;'
$ cat /tmp/catdir2.pm6
use File​::Temp; $*SPEC.catdir("/tmp/", ".rc");
$ perl6 -e 'use lib "/tmp"; use catdir2;'
===SORRY!===
Cannot find method 'run_alt'

@p6rt
Copy link
Author

p6rt commented Dec 14, 2015

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

@p6rt
Copy link
Author

p6rt commented Dec 14, 2015

From @skids

On Sun Dec 13 18​:15​:55 2015, bri@​abrij.org wrote​:

Found this as well, unreleated to panda, and managed to golf it down some​:

$ cat /tmp/catdir.pm6
use File​::Temp; $*SPEC.catdir("/tmp/", "rc");

$ perl6 -e 'use lib "/tmp"; use catdir;'
$ cat /tmp/catdir2.pm6
use File​::Temp; $*SPEC.catdir("/tmp/", ".rc");
$ perl6 -e 'use lib "/tmp"; use catdir2;'
===SORRY!===
Cannot find method 'run_alt'

On further inspection this smells like a precomp heisenbug.

I took Temp.pm from File-Temp and copied it to a file
also in /tmp. I *was* able to replicate the problem
this way.

Then I started to try to golf that file down. I found various
things could be cut out and still exhibit the problem, but cutting
out a lot of things made the problem disappear, and some of those
things included pod, certain comments, certain whitespaces, and other
things that definitely should not be any issue at all.

@p6rt
Copy link
Author

p6rt commented Dec 28, 2015

From @jonathanstowe

It no longer does this with H​::UA so I reverted the work-around.

Obviously I can't know whether it is doing anywhere else.

On Sun Dec 13 08​:10​:25 2015, jns+bc@​gellyfish.co.uk wrote​:

Yep getting this with the tests of HTTP​::UserAgent​:

[jonathan@​coriolanus http-useragent]$ perl6 --ll-exception -Ilib
t/040-request.t

Cannot find method 'run_alt'
at gen/moar/stage2/QRegex.nqp​:1416
(/home/jonathan/.rakudobrew/moar-
nom/install/share/nqp/lib/QRegex.moarvm​:!alt​:0)
from gen/moar/m-CORE.setting​:34109 (/home/jonathan/.rakudobrew/moar-
nom/install/share/perl6/runtime/CORE.setting.moarvm​:TOP​:157)

...

@p6rt
Copy link
Author

p6rt commented Dec 28, 2015

From @zoffixznet

Just tried to install Pastebin​::Gist and HTTP​::UserAgent and this issue did not occur (rakudo built with rakudobrew build moar last night)

@p6rt
Copy link
Author

p6rt commented Jan 25, 2016

From @zoffixznet

I believe this has been fixed some time near pre-Christmas. Closing.

@p6rt
Copy link
Author

p6rt commented Jan 25, 2016

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

@p6rt p6rt closed this as completed Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant