I was getting this error when booting up my rails app:
activesupport/lib/active_support/dependencies.rb:302:in `require':
cannot load such file -- rack/showexceptions (LoadError)
showexception to show_exceptionThis was a problem with an out of date rack version.
Resolved by: https://github.com/sinatra/sinatra/pull/1033
@djsegal what is the planned merge and release for #1033? Is there an immediate solution for this error?
Are there any plans to backport this fix to 1.4? Potentially an easy backport, and would allow 1.4 users to run on rack 2.
I'd be happy to backport this. @zzak @TrevorBramble @ashleygwilliams @kgrz -- any objections?
I'm worried about the changed Rack::File API/usage in Rack 2.x. It might break Sinatra 1.4.x's use of Rack::File. #1045 uses the newer API, but including that for 1.4.x would be a breaking change.
Ah, yes, you're right. If we do back-port this, we'd also need to back-port the changes you made in #1045. It doesn't look like the 1045 PR changes the public API of Sinatra itself, so at first blush that seems like it could work. Am I missing anything else here?
Given the known details I think backporting is the right thing.
On Jan 5, 2016 6:13 AM, "Katrina Owen" [email protected] wrote:
Ah, yes, you're right. If we do back-port this, we'd also need to
back-port the changes you made in #1045
https://github.com/sinatra/sinatra/pull/1045. It doesn't look like the
1045 PR changes the public API of Sinatra itself, so at first blush that
seems like it could work. Am I missing anything else here?—
Reply to this email directly or view it on GitHub
https://github.com/sinatra/sinatra/issues/1055#issuecomment-169011529.
OK, cool. I'll assign this one to myself.
I've taken another look at this. The idea would be to only support rack 2.0, right?
I think supporting Rack 2.0 only is the easiest way to move forward
Yeah, I think so to. I'm going to un-assign this. At first blush there's a little bit more work that needs to go into this than just cherry-picking the commits in question.
This should be fixed.
This should be fixed.
It is fixed by https://github.com/sinatra/sinatra/commit/5993492eccfda74c3cc60760073a4b037662f5d3 in 1.4.7, right? Thanks!
Confirming that I solved this by adding gem 'sinatra', '2.0.0.beta2' to gemfile.
If you're using grape, there's a conflict using 2.0.0.beta2 as it depends on 'mustermann', '1.0.0.beta2' which grape 0.19.2 (highest current version) depends on mustermann (~> 1.0.0):
Bundler could not find compatible versions for gem "mustermann":
In Gemfile:
mustermann (= 1.0.0.beta2)
grape was resolved to 0.19.2, which depends on
mustermann-grape (~> 1.0.0) was resolved to 1.0.0, which depends on
mustermann (~> 1.0.0)
@rushingfitness Try '2.0.0.rc2' (or '>= 2.0.0.beta2', '< 3') instead.
@mwpastore I could kiss ya! Thanks man, don't know how I missed the rc's :)
Most helpful comment
Confirming that I solved this by adding
gem 'sinatra', '2.0.0.beta2'to gemfile.