BetterErrors / better_errors

Better error page for Rack apps
MIT License
6.88k stars 435 forks source link

uninitialized constant BetterErrors::Middleware::VERSION (NameError) #483

Closed seb-sykio closed 3 years ago

seb-sykio commented 3 years ago
 3: from .rvm/gems/ruby-2.6.5/gems/better_errors-2.8.2/lib/better_errors.rb:9:in `<top (required)>'
 2: from .rvm/gems/ruby-2.6.5/gems/better_errors-2.8.2/lib/better_errors/middleware.rb:7:in `<top (required)>'
 1: from .rvm/gems/ruby-2.6.5/gems/better_errors-2.8.2/lib/better_errors/middleware.rb:28:in `<module:BetterErrors>'

.rvm/gems/ruby-2.6.5/gems/better_errors-2.8.2/lib/better_errors/middleware.rb:43:in `': uninitialized constant BetterErrors::Middleware::VERSION (NameError)

ruby 2.6 rails 4.2.11.3

frobert commented 3 years ago

Same here after update :/

Rails 6.0.3.3 Ruby 2.7.1

joker-777 commented 3 years ago

Same for me!

frobert commented 3 years ago

Duplicate of https://github.com/BetterErrors/better_errors/issues/482

afuno commented 3 years ago

Same

jcoglan commented 3 years ago

I believe this change is the source of the problem: referring to VERSION without having explicitly loaded that constant. It's stopping our Rails app from booting.

https://github.com/BetterErrors/better_errors/compare/v2.8.1..master#diff-5e3c1d57ea649185a86b730f951f5a18R43

addisonmartin commented 3 years ago

I've submitted a fix: https://github.com/BetterErrors/better_errors/pull/480

RobinDaugherty commented 3 years ago

Very sorry for my mistake everyone, release 2.8.3 fixes this and is live (and I tested it in an app). Thank you @addisonmartin and @peaonunes for the PRs!