Comments (5)
I would really like to know what is causing this as well. I am experiencing the same error with a different gem (sinatra/flash) that is being pulled from github (Gemfile - gem git....sinatra-flash.git, require 'sinatra/flash'
).
But when I just use rackup
, with thin
, there is no problem at all. Here is my output for reference:
LoadError: cannot load such file -- sinatra/flash
/Users/u/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:36:in `require'
/Users/u/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:36:in `require'
/Users/u/Dropbox/Working/Sites/tedi.us/app.rb:10:in `block in <top (required)>'
/Users/u/Dropbox/Working/Sites/tedi.us/app.rb:10:in `each'
/Users/u/Dropbox/Working/Sites/tedi.us/app.rb:10:in `<top (required)>'
/Users/u/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:36:in `require'
/Users/u/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/custom_require.rb:36:in `require'
config.ru:4:in `block in inner_app'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
config.ru:1:in `new'
config.ru:1:in `inner_app'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/loader.rb:112:in `eval'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/loader.rb:112:in `inner_app'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/loader.rb:102:in `assemble_app'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/loader.rb:86:in `proceed_as_child'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/loader.rb:31:in `call!'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/loader.rb:18:in `call'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/favicon.rb:12:in `call'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/lib/shotgun/static.rb:14:in `call'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/rack-1.5.2/lib/rack/builder.rb:138:in `call'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/connection.rb:86:in `block in pre_process'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/connection.rb:84:in `catch'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/connection.rb:84:in `pre_process'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/connection.rb:53:in `process'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/connection.rb:39:in `receive_data'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run_machine'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in `run'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/backends/base.rb:73:in `start'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/thin-1.6.2/lib/thin/server.rb:162:in `start'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/rack-1.5.2/lib/rack/handler/thin.rb:16:in `run'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/gems/shotgun-0.9/bin/shotgun:156:in `<top (required)>'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/bin/shotgun:19:in `load'
/Users/u/.rvm/gems/ruby-2.0.0-p247@global/bin/shotgun:19:in `<main>'
/Users/u/.rvm/gems/ruby-2.0.0-p247@geo-wip/bin/ruby_executable_hooks:15:in `eval'
/Users/u/.rvm/gems/ruby-2.0.0-p247@geo-wip/bin/ruby_executable_hooks:15:in `<main>'
from shotgun.
I had this issue today, It turns out that I had forgotten to add the gem to my Gemfile and had instead just done a gem install [gemname]
from shotgun.
Yeah, unfortunately that's not my issue. I have the gem in my Gemfile,
although I don't have the version specified. I'll give that a try.
On Tue, Aug 5, 2014 at 8:38 AM, Matt [email protected] wrote:
I had this issue today, It turns out that I had forgotten to add the gem
to my Gemfile and had instead just done a gem inst—
Reply to this email directly or view it on GitHub
#54 (comment).
from shotgun.
@safetymonkey Can you please let us know if this is still an issue? If so, can you provide a standalone repo (a gist?) so that we can reproduce? Thanks!
from shotgun.
Using the following gem versions I am no longer able to reproduce the issue. Thanks!
shotgun -- 0.9
sinatra -- 1.4.4
net-ldap -- 0.7.0
from shotgun.
Related Issues (20)
- No output from Rack::CommonLogger HOT 8
- Can not run shotgun in cmd.exe on Windows 7 (64bit) HOT 8
- Can't use `require_relative` from within `./shotgun.rb`
- EM.next_tick never called HOT 2
- NameError: uninitialized constant Shotgun::Loader::YAML HOT 2
- direct users to sinatra-contrib reloader HOT 4
- Provide license information for the software
- shotgun don't work on windows
- Sinatra `enable :lock` doesn't work with Shotgun HOT 1
- On stop server I get error in loop reactor HOT 1
- Incompatible with SuckerPunch Async HOT 1
- Shotgun visits every mapping in config.ru regardless the request HOT 10
- The way shotgun run HOT 4
- Rack 2.0.1 breaks requiring rack in bin/shotgun HOT 1
- Running a basic sinatra file shotgun breaks and cannot find 'rack/commonlogger' HOT 4
- Doesn't work on macOS High Sierra HOT 8
- e HOT 1
- Ruby 3 Compatibility HOT 4
- Ruby 3.0.0 -- every webserver seems to error with "wrong number of arguments (given 2, expected 1) (ArgumentError)" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shotgun.