Skip to content

Not work with minitest 5.16.X #93

Closed

Description

@zw963
/home/common/.rvm/gems/ruby-3.1.2@pryx/gems/minitest-5.16.0/lib/minitest/test.rb:70:in `srand': no implicit conversion of nil into Integer (TypeError)
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/minitest-5.16.0/lib/minitest/test.rb:70:in `runnable_methods'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/runners/minitest_5.rb:15:in `test_methods'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/executor.rb:90:in `block in suites'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/executor.rb:88:in `each'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/executor.rb:88:in `each_with_object'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/executor.rb:88:in `suites'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/executor.rb:61:in `tests'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/executor.rb:15:in `execute'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m/runner.rb:17:in `run'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/lib/m.rb:13:in `run'
        from /home/common/.rvm/gems/ruby-3.1.2@pryx/gems/m-1.6.0/bin/m:4:in `<top (required)>'
        from /home/zw963/.rvm/gems/ruby-3.1.2@pryx/bin/m:25:in `load'
        from /home/zw963/.rvm/gems/ruby-3.1.2@pryx/bin/m:25:in `<main>'
        from /home/zw963/.rvm/rubies/ruby-3.1.2/bin/ruby_executable_hooks:22:in `eval'
        from /home/zw963/.rvm/rubies/ruby-3.1.2/bin/ruby_executable_hooks:22:in `<main>'
rake aborted!
Command failed with status (1): [m test/pryx/pryx_test.rb...]
/home/common/Project/pryx/Rakefile:4:in `block in <top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)

The last support version is 5.15.0

Activity

  1. felixonmars commented on Oct 19, 2022

    @felixonmars
    Contributor

    Fixed by #92

  2. zw963 commented on Oct 20, 2022

    @zw963
    Author

    @qrush , can we release a new version?

  3. zw963 commented on Oct 20, 2022

    @zw963
    Author

    Fixed by #92

    谢谢,肥猫,最近在看 Ruby 吗?不如连 Crystal 一起看看吧。

  4. qrush commented on Oct 20, 2022

    @qrush
    Owner

    @gi any chance you're up for pushing a new version here? 😅 🙏🏼

  5. zedtux commented on Oct 21, 2022

    @zedtux

    Yes, please, release a new version 🙏

  6. merof-code commented on Oct 25, 2022

    @merof-code

    I have no idea why, but no matter what, VS Code marketplace shows that 0.9.1 exists, but you cannot download it
    windows with wsl2 Ubuntu 22.04.
    While all that, I just downgraded minitest version
    image

  7. searls commented on Nov 18, 2022

    @searls
    Collaborator

    @qrush / @gi -- if you're open to it, I'm willing to help maintain m and to get releases like this out the door. I had been incorrectly assuming m was unmaintained and thinking of building something inspired by it but it seems like it's still working (except I'm blocked by this issue)

  8. qrush commented on Nov 18, 2022

    @qrush
    Owner

    @searls just invited you. :shipit:

  9. searls commented on Nov 18, 2022

    @searls
    Collaborator

    @qrush thanks! I can't get the tests to pass without updating bundler (which means I should commit back to the repo). Could I have commit bit too?

  10. searls commented on Nov 19, 2022

    @searls
    Collaborator

    Landed the change in 1.6.1. CI is not happy about it, but all tests passed locally at least.

    More broadly, @qrush, if you'd like to talk about ongoing maintenance and feature development for the gem, I've got some ideas about contributing!

  11. qrush commented on Nov 19, 2022

    @qrush
    Owner
  12. jrochkind commented on Dec 13, 2022

    @jrochkind

    Just found this ticket after having this problem -- would love to see a release. Any chance?

  13. searls commented on Dec 13, 2022

    @searls
    Collaborator

    @jrochkind yes this was released in m@1.6.1

  14. jrochkind commented on Dec 13, 2022

    @jrochkind

    Oh, thanks! And thanks for quick response!

    What had I done? Ah, I was just trying minitest in a new project today, and copy-pasted from the README gem 'm', '~> 1.5.0', so that kept me from using the up-to-date 1.6.1, oops! Thanks!

    You may want to replace README copy-paste line with gem 'm', '~> 1.6'? Not only updating to latest minor version, but if it gets out of date again like that, with only two version components, if someone copies-pastes it will still allow 1.7, 1.8, 1.10, etc. Whereas ~> 1.5.0 only allows 1.5.x.

    I think I'm learning to never copy-paste version numbers from README, this is the second time this month it's bitten me!

  15. searls commented on Dec 13, 2022

    @searls
    Collaborator

    Thanks for catching this. I just removed the version pins from the README

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions