BetterErrors / better_errors

Better error page for Rack apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

seb-sykio opened this issue · comments

 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 `class:Middleware': uninitialized constant BetterErrors::Middleware::VERSION (NameError)

ruby 2.6
rails 4.2.11.3

Same here after update :/

Rails 6.0.3.3
Ruby 2.7.1

Same for me!

Duplicate of #482

commented

Same

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

I've submitted a fix:
#480

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!