Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: uninitialized constant Resque::Version #156

Open
diei opened this issue Nov 9, 2021 · 12 comments · May be fixed by #157
Open

NameError: uninitialized constant Resque::Version #156

diei opened this issue Nov 9, 2021 · 12 comments · May be fixed by #157

Comments

@diei
Copy link

diei commented Nov 9, 2021

After update from resque 2.1.0 to 2.2.0 I get following error when I load the resque-web website:

NameError: uninitialized constant Resque::Version
  from resque-web (0.0.12) app/views/layouts/resque_web/application.html.erb:73

The constant definition was changed in resque/lib/resque/version.rb:
From:

module Resque
  Version = VERSION = '2.0.0'
end

To:

module Resque
  VERSION = '2.0.0'
end
diei pushed a commit to diei/resque-web that referenced this issue Nov 9, 2021
@diei diei linked a pull request Nov 9, 2021 that will close this issue
@jlkauffman92
Copy link

I'm getting this error as well.

@francescor
Copy link

we would like this fix too :)

@alexadia
Copy link

alexadia commented Jan 7, 2022

Likewise, would also like this fix.

@hackhowtofaq
Copy link

Anyone around to merge this, plz! ;)

@weshatheleopard
Copy link

Merge and release the new version please.

sethaj added a commit to mlibrary/heliotrope that referenced this issue Jul 5, 2022
added 'font-awesome-sass' for resque-web
copied over app/views/layouts/resque_web/application.html.erb for
resque_web, resque/resque-web#156
sethaj added a commit to mlibrary/heliotrope that referenced this issue Jul 5, 2022
added 'font-awesome-sass' for resque-web
copied over app/views/layouts/resque_web/application.html.erb for
resque_web, resque/resque-web#156
@wwwermishel
Copy link

Merge and release the new version please.

@bassboy2k
Copy link

New version please!

@garybunofsky
Copy link

New version plz

@kameshprasad
Copy link

Please merge and release new version

@jlkauffman92
Copy link

My work around for this is simply putting Resque:: Version = 2 in my application.rb file.

@kameshprasad
Copy link

kameshprasad commented Feb 26, 2023

More accurate will be to have Resque:: Version = Resque::VERSION in application.rb or in initilizers/resque.rb

@trevorthornton
Copy link

Resque::Version = Resque::VERSION

FWIW - in my case (using Rails 7) that line had to go in application.rb – tried it in initilizers/resque.rb but it didn't work.

The fact that the fix for this is so simple and remains unmerged, and that the code hasn't been touched in over a year, makes me suspect that this gem may be endangered. What can we do to help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.