-
Notifications
You must be signed in to change notification settings - Fork 152
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 tasks failing on last_comment undefined method #134
Comments
Can you please check your bundler and rspec Versions? |
Seems to be all good regarding versions. Oddly enough i cleaned out my gems, did a fresh git clone and reinstalled the skeleton, and now it seems to be working So the first issue seems to be resolved (i suspect i had a conflict with the faraday gem). However, i'm currently getting the following error:
After commenting the line it seems to be working again. When i go through the puppetlabs_spec_helper/rake_tasks files i can't find a reference to any coverage tasks. Bear in mind that i'm not very well versed in Rake syntax, but the issue seems to be that the coverage task is not defined. replacing the line |
I'm also seeing this - the original error regarding an undefined method that is - on a clean install of Ruby 2.3.3 via rbenv:
Versions look OK: $ bundler --version
Bundler version 1.13.7 $ rspec --version
3.1.7 I had to pin Rake with the following in my
At which point I also hit the error regarding the coverage task. |
After installation, When trying to run any of the tasks in the rakefile i get the following error message:
sjorsr@puppetmaster ~/packages (master)$ rake spec [ruby-2.3.1p112]
rake aborted!
NoMethodError: undefined method
last_comment' for #<Rake::Application:0x00000002185db0> /var/lib/gems/2.3.0/gems/rspec-core-3.1.7/lib/rspec/core/rake_task.rb:104:in
define'/var/lib/gems/2.3.0/gems/rspec-core-3.1.7/lib/rspec/core/rake_task.rb:80:in
initialize' /var/lib/gems/2.3.0/gems/puppetlabs_spec_helper-1.2.2/lib/puppetlabs_spec_helper/rake_tasks.rb:19:in
new'/var/lib/gems/2.3.0/gems/puppetlabs_spec_helper-1.2.2/lib/puppetlabs_spec_helper/rake_tasks.rb:19:in
<top (required)>' /home/sjorsr/packages/Rakefile:4:in
require'/home/sjorsr/packages/Rakefile:4:in
<top (required)>' /var/lib/gems/2.3.0/gems/rake-12.0.0/exe/rake:27:in
<top (required)>'(See full trace by running task with --trace)
sjorsr@puppetmaster ~/packages (master)$
This seems to be related to the fact that in rake v12 and higher support for last_comment has been dropped, and the error seems to be in at least the puppetlabs_spec_helper. Version of puppetlabs_spec_helper is the latest (1.2.2) after installing the gem bundle, so i'm not exactly clear what'd be causing this.
Alternatively i could update the gemfile to use rake < 10.1, however this would be a stopgap measure at most, since at some point Rake would have to be updated.
The text was updated successfully, but these errors were encountered: