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

Getopt::ForClass #406

Open
AlexDaniel opened this issue Feb 8, 2019 · 1 comment
Open

Getopt::ForClass #406

AlexDaniel opened this issue Feb 8, 2019 · 1 comment

Comments

@AlexDaniel
Copy link
Member

Module Getopt::ForClass cannot be installed (AlwaysFail), perhaps it has some failing tests.

  • Tickets are opened/closed in this repo automatically (though not immediately).
  • If you can install the module without any problems, add works for me label, leave a comment saying that it works for you and mention any details that you feel are important.
  • If it needs a native library, put native dependency label, describe what you did to install it and ensure that same instructions are present in the README file of the module (otherwise submit a pull request). Also try to update this wiki page.
  • If the module is broken, try to fix it and send a PR. Add PR sent label.
  • If there is a problem in one of the dependencies, add failing dependency label and write a comment explaining the situation. Feel free to work on the corresponding ticket for the failing dependency.
  • It is a good idea to assign yourself to this ticket if you're working on it (to make sure two or more people are not working on the same ticket at the same time).
  • Once you are done, search for a next ticket.

If you can't self-assign yourself or attach a label, please let us know on #perl6 channel on freenode or just leave a comment here. We will try to give you privileges as fast as possible.

Output:

===> Searching for: Getopt::ForClass
===> Found: Getopt::ForClass:ver<0.3>:auth<github:zostay> [via Zef::Repository::Ecosystems<p6c>]
===> Fetching [OK]: Getopt::ForClass:ver<0.3>:auth<github:zostay> to /home/alex/Blin/data/zef-data/tmp/1549582888.10737.8291/p6-Getopt-ForClass.git
===> Extraction [OK]: Getopt::ForClass to /home/alex/Blin/data/zef-data/store/p6-Getopt-ForClass.git
===> Testing: Getopt::ForClass:ver<0.3>:auth<github:zostay>
t/basic.t ...... ok
Ambiguous call to 'MAIN_HELPER(Nil)'; these signatures all match:
:($retval = 0)
:($IN-as-ARGSFILES, $retval = 0)
  in block <unit> at t/testclass.p6 line 19

# Failed test 'ran command-one'
# at t/cli.t line 9
# expected: 'one
# '
#      got: ''
Ambiguous call to 'MAIN_HELPER(Nil)'; these signatures all match:
:($retval = 0)
:($IN-as-ARGSFILES, $retval = 0)
  in block <unit> at t/testclass.p6 line 19

# Failed test 'ran command-two'
# at t/cli.t line 12
# expected: 'two
# '
#      got: ''
Ambiguous call to 'MAIN_HELPER(Nil)'; these signatures all match:
:($retval = 0)
:($IN-as-ARGSFILES, $retval = 0)
  in block <unit> at t/testclass.p6 line 19

# Failed test 'ran command-three'
# at t/cli.t line 15
# expected: 'three
# '
#      got: ''
# Looks like you failed 3 tests of 3
t/cli.t ........ 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests 
t/test-meta.t .. ok

Test Summary Report
-------------------
t/cli.t      (Wstat: 768 Tests: 3 Failed: 3)
  Failed tests:  1-3
  Non-zero exit status: 3
Files=3, Tests=10, 12 wallclock secs ( 0.04 usr  0.00 sys +  8.81 cusr  0.57 csys =  9.42 CPU)
Result: FAIL
===> Testing [FAIL]: Getopt::ForClass:ver<0.3>:auth<github:zostay>
Failed to get passing tests, but continuing with --force-test
===> Installing: Getopt::ForClass:ver<0.3>:auth<github:zostay>
===> Install [OK] for Getopt::ForClass:ver<0.3>:auth<github:zostay>

Ping @zostay

Previous ticket: #205

@Leont
Copy link

Leont commented Feb 8, 2019

rakudo 2018.06 changed the MAIN_HELPER logic, and then 2018.10 changed it again. So now this module appears to work on 2018.06-2018.09, ironically it's the backwards compatibility logic that seems to have broken it on 2018.10.

I suspect the way out is to implement the third and newest interface(ARGS-TO-CAPTURE/RUN-MAIN)

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

2 participants