weixin_39789042
weixin_39789042
2021-01-07 02:17

fiddle library missing

When I tried to run the tests under spec/lib it didn't work complaining about not finding 'fiddle'. I'd create a pull-request to add the 'fiddle' dependency if that was the only problem.

But that doesn't help because fiddle seems to depend on inherited_resources although it also doesn't declare this dependency in its gemspecs...

Maybe fiddle should be fixed before fixing this gem...

该提问来源于开源项目:rails/spring

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39789042 weixin_39789042 4月前

    Also, inherited_resources seems to depend on active_support but also doesn't declare this dependency. It seems like there is a major problem with our community with specifying dependencies...

    点赞 评论 复制链接分享
  • weixin_39811193 weixin_39811193 4月前

    I also really have problems with this. I tried adding fiddle to the Gemfile, but then it said it can't find the constant Fiddle::Function. And it looks like it doesn't exist in the fiddle gem.

    点赞 评论 复制链接分享
  • weixin_39560245 weixin_39560245 4月前

    I also had problems with this.

    Actually, when spring requires fiddle, it actually wants to use libffi-dev, not the fiddle gem (which seems to be an abandoned Rails engine). Recompiling your Ruby with libffi support should help (credits go to http://stefanwienert.net/blog/2013/02/08/faster-rails-tests-with-spring-faster-than-spork-und-easier-to-setup/).

    点赞 评论 复制链接分享
  • weixin_39789042 weixin_39789042 4月前

    Thanks . That article helped me get spring running here. I've recompiled ruby with ffi support after installing libffi-dev and also removed the require 'rspec/autorun' from spec_helper.rb and it seems to be working fine now.

    点赞 评论 复制链接分享
  • weixin_39811193 weixin_39811193 4月前

    Wow, thank you very much, it worked like a charm :)

    点赞 评论 复制链接分享
  • weixin_39754398 weixin_39754398 4月前

    Yeah, we're using fiddle in the standard library, not the gem.

    Actually the master version no longer has a hard dependency on fiddle - if it's not available then we fall back to shelling out.

    I'll leave this open until the next release is out so people can find this info.

    点赞 评论 复制链接分享
  • weixin_39578674 weixin_39578674 4月前

    With 0.0.7 released we shouldn't have issues when fiddle isn't available.

    Closing for now. If anyone still has issues please comment, and we'll re-open.

    点赞 评论 复制链接分享

相关推荐