-
Notifications
You must be signed in to change notification settings - Fork 52
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
rake schedulable:build_occurrences failing #6
Comments
I am very sorry for the delay. |
Awesome, thanks! |
This is fixed with current release v0.0.8. |
Still have a problem here with v0.0.8: rake schedulable:build_occurrences /Users//.rvm/gems/ruby-2.2.2/gems/schedulable-0.0.8/lib/schedulable/acts_as_schedulable.rb:78:in |
Hi dsgrafiniert, Please try installing from master by putting the following in your Gemfile: gem "schedulable", github: 'benignware/schedulable' Maybe the error is due to a specific ruby or rails version. Please determine your versions by running Since the stack trace points to line 78 where the schedulable object, e.g. an event, is referenced, it is also likely that there is something wrong with db schema regarding polymorphic association. Check your schema.db if the schedules table contains the following fields: t.integer "schedulable_id"
t.string "schedulable_type" You could also try to checkout the gem's source code and reproduce the issue with the dummy app. This would be very helpful in order to fix it. Many thanks and best regards, |
A new release is available. Please checkout v0.0.9 and test if the issue still persists. Thank you. |
I am also getting "NoMethodError: undefined method `schedulable' for nil:NilClass". Can we reopen this issue?
Here's the full trace:
|
Yes, I can now reproduce the issue now and reopen it |
In my app I have a jobs model which is schedulable and has occurrences. When I create a new job the occurrences are correctly created but when I run rake schedulable:build_occurrences it fails. Totally stumped by this one. Trace below.
rake schedulable:build_occurrences --trace
'** Invoke schedulable:build_occurrences (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute schedulable:build_occurrences
rake aborted!
ArgumentError: wrong number of arguments (1 for 0)
/Users/scott/.rvm/gems/ruby-2.1.0/gems/activerecord-4.2.0/lib/active_record/scoping/named.rb:24:in
all' /Users/scott/.rvm/gems/ruby-2.1.0/gems/schedulable-0.0.7/lib/tasks/schedulable_tasks.rake:5:in
block (2 levels) in <top (required)>'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in
call' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in
each' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in
block in invoke_with_call_chain' /Users/scott/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:211:in
mon_synchronize'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in
invoke_with_call_chain' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:150:in
invoke_task' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
each' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:115:in
run_with_threads' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:78:in
block in run' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling'/Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/application.rb:75:in
run' /Users/scott/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/bin/rake:33:in
<top (required)>'/Users/scott/.rvm/gems/ruby-2.1.0/bin/rake:23:in
load' /Users/scott/.rvm/gems/ruby-2.1.0/bin/rake:23:in
/Users/scott/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in
eval' /Users/scott/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in
'Tasks: TOP => schedulable:build_occurrences
The text was updated successfully, but these errors were encountered: