rubyrubygemsguard

Unresolved specs during Gem::Specification.reset:


When launching Guard, I'm getting this output:

$ guard
WARN: Unresolved specs during Gem::Specification.reset:
      lumberjack (>= 1.0.2)
      ffi (>= 0.5.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.

What does this mean, and how do I fix it?

Contents of Guardfile:

guard 'livereload' do
    watch(%r{.+\.(css|js|html)$})
end
guard 'sass', :input => 'css', :style => :compressed, :extension => '.min.css'

Solution

  • I was seeing this issue by just running RSpec on its own. From what I understand, this means that you have more than one version of the listed gems installed on your system, and RSpec is unsure which one to use. After uninstalling older version of the gems, the warnings went away.

    You can try:

    gem cleanup lumberjack
    

    Or:

    gem list lumberjack
    
    gem uninstall lumberjack
    

    If you're using Bundler, you can try bundle exec guard (or in my case bundle exec rspec).