dry-rb / dry-web-roda

Roda integration for dry-web apps
MIT License
119 stars 22 forks source link

dry-web-roda errors out: Cannot load such file -- dry/web/roda/cli (LoadError) #72

Open billdueber opened 6 years ago

billdueber commented 6 years ago

Calling dry-web-roda from a fresh install immediately gives this load error. It looks like it's the require "bundler/setup" -- I'm not sure why that's there in an executable to begin with.

(Maybe you folks only ever run it from local source with bundle exec so you never noticed?)

In any case, I've included what little I've got below, in case something else rings a bell.

# Starting from scratch:

13:51 $ ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]

13:51 $ gem list dry-web* roda*

*** LOCAL GEMS ***
*** LOCAL GEMS ***

13:52 $ gem install dry-web-roda
Fetching: roda-2.29.0.gem (100%)
Successfully installed roda-2.29.0
Fetching: roda-flow-0.3.1.gem (100%)
Successfully installed roda-flow-0.3.1
Fetching: dry-web-roda-0.9.1.gem (100%)
Successfully installed dry-web-roda-0.9.1
3 gems installed

13:52 $ dry-web-roda -h
/Users/dueberb/.gem/ruby/2.4.1/gems/dry-web-roda-0.9.1/exe/dry-web-roda:4:in `require': cannot load such file -- dry/web/roda/cli (LoadError)
    from /Users/dueberb/.gem/ruby/2.4.1/gems/dry-web-roda-0.9.1/exe/dry-web-roda:4:in `<top (required)>'
    from /Users/dueberb/.gem/ruby/2.4.1/bin/dry-web-roda:22:in `load'
    from /Users/dueberb/.gem/ruby/2.4.1/bin/dry-web-roda:22:in `<main>'
alejandrobabio commented 6 years ago

What about running rbenv rehash? (Yes, I'm guessing you are using rbenv).