-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Resque 1.25.0 uninitialized constant Resque::Forwardable (NameError) in resque.rb #1128
Comments
Forwardable is in the ruby standard library, are you sure your ruby install On Wednesday, September 25, 2013, Rafia Qutab wrote:
|
I am using my development machine. So yes and I am using ruby 1.9.3p194. I no longer see the issue with Resque 1.24.1 version. So is there a compatibility issue? |
I don't know. Can you run code that uses |
I am getting the same error. Its Resque::Forwardable which would suggest that the Forwardable class in the Resque module is missing. This would not be the ruby Forwardable class. I downgraded from resque-1.25.0 to resque-1.24.1 and the problem went away. I would assume there is a bug in resque-1.25.0 as the issue started when I upgraded to it. |
forward able is not part of Resque, it is part of the ruby standard library. |
The pre gem on Rubygems doesn't have the forwardable require in it |
In 1.9.3 it is stdlib, not core, so you have to
|
You might also want to consider changing this line instead to: extend ::Forwardable This exists in master too. I was about to submit a patch for this but the internet at rockymtnruby is somewhat lagging |
@zzak I've pushed fully-qualified constant reference patches to both |
Great! Thank you. |
I just released 1.25.1 with this fix. I am so sorry. :( |
Just so people know why this slipped past the tests; bundler was requiring
Here is how I discovered this fact:
This is one reason I really like |
That's an awesome hack. I need to bookmark this somewhere |
Because Travis says /home/travis/.rvm/rubies/ruby-1.9.3-p551/lib/ruby/1.9.1/rake/ext/module.rb:36:in `const_missing': uninitialized constant Sauce::Selenium2::Forwardable (NameError) from /home/travis/.rvm/gems/ruby-1.9.3-p551/gems/sauce-3.5.4/lib/sauce/selenium.rb:33:in `<class:Selenium2>'. And this seems relevant to resque/resque#1128.
When you’re troubleshooting an order dependent failure, you want to get the repro case down to a minimal run that loads and runs as few specs as possible. With the old random ordering implementation, that was hard to achieve because while rerunning with a given seed produced the same order when the exact same set of examples were loaded, the ordering would be completely different when a subset was loaded. By ordering by `hash(seed + example_id)` it ensures that the ordering of any two examples should stay consistently regardless of how many other examples are loaded. Jenkins or MD5 is significantly slower than `shuffle`, but I think the tradeoff is worth it here. This isn’t a hot spot.
I am a resque 1.24.1 user and recently installed the latest version of resque on a new machine. The version it installs by default is now 1.25.0. When I run the resque command, I get the following error:
myuser_directory/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/resque-1.25.0.pre/lib/resque.rb:51:in
<module:Resque>': uninitialized constant Resque::Forwardable (NameError) from /Users/rq/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/resque-1.25.0.pre/lib/resque.rb:23:in
<top (required)>'from /Users/rq/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in
require' from /Users/rq/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:60:in
rescue in require'from /Users/rq/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
I was not able to find any help online and realized this version was released just recently: September 16. I reverted to version 1.24.1 for now. Please let me know if this is a known issue with 1.25.0.
Thank you,
Rafia Qutab
The text was updated successfully, but these errors were encountered: