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

Cannot load guard/ui #373

Closed
lokeshh opened this issue May 30, 2016 · 5 comments
Closed

Cannot load guard/ui #373

lokeshh opened this issue May 30, 2016 · 5 comments
Labels

Comments

@lokeshh
Copy link

lokeshh commented May 30, 2016

I'm getting this error when I run guard after installing guard and guard-rspec.

lokeshh:~/workspace/daru (cat_index) $ guard
Warning: you have a Gemfile, but you're not using bundler or RUBYGEMS_GEMDEPS
RubyDep: WARNING: Your Ruby is outdated/buggy. (To disable warnings, set RUBY_DEP_GEM_SILENCE_WARNINGS=1)
RubyDep: WARNING: Your Ruby is: 2.3.0 (buggy). Recommendation: install 2.3.1.
05:39:12 - INFO - Guard here! It looks like your project has a Gemfile, yet you are running
> [#] `guard` outside of Bundler. If this is your intent, feel free to ignore this
> [#] message. Otherwise, consider using `bundle exec guard` to ensure your
> [#] dependencies are loaded correctly.
> [#] (You can run `guard` with --no-bundler-warning to get rid of this message.)

05:39:13 - INFO - Guard::RSpec is running
05:39:13 - INFO - Guard is now watching at '/home/ubuntu/workspace/daru'
[1] guard(main)> 
05:39:14 - INFO - Run all
05:39:14 - INFO - Running all specs
/home/ubuntu/.rvm/gems/ruby-2.3.0/gems/guard-rspec-4.7.0/lib/guard/rspec_formatter.rb:12:in `require': cannot load such file -- guard/ui (LoadError)
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/guard-rspec-4.7.0/lib/guard/rspec_formatter.rb:12:in `<top (required)>'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1295:in `require'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1295:in `block in requires='
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1295:in `each'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1295:in `requires='
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration_options.rb:109:in `block in process_options_into'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration_options.rb:108:in `each'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration_options.rb:108:in `process_options_into'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration_options.rb:21:in `configure'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:105:in `setup'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:92:in `run'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in `invoke'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/rspec-core-3.4.4/exe/rspec:4:in `<top (required)>'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/bin/rspec:23:in `load'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/bin/rspec:23:in `<main>'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
        from /home/ubuntu/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
05:39:16 - ERROR - Failed: "bundle exec rspec -f progress -r /home/ubuntu/.rvm/gems/ruby-2.3.0/gems/guard-rspec-4.7.0/lib/guard/rspec_formatter.rb -f Guard::RSpecFormatter --failure-exit-code 2  spec" (exit code: 1)

[1] guard(main)> 

Please help. I am installing guard so that it runs rspec automatically. Also I am using it for standard ruby gem development and not rails.

@e2
Copy link
Contributor

e2 commented May 30, 2016

For a quick workaround, first try the following:

  1. Add to your Gemfile the following line: gem 'guard-rspec', '~> 4.6.5'
  2. Run Guard with bundle exec guard.

If you don't want to use bundler, you'll have to configure Guard::RSpec to use rspec instead of bundle exec rspec for the :cmd option in your Guardfile.

Let me know if that helps.

@e2 e2 added the bug label May 30, 2016
@e2
Copy link
Contributor

e2 commented May 30, 2016

It also looks like you have some kind of weird error that you shouldn't be getting. I'm guessing this is a bug.

Could you show your Gemfile and Gemfile.lock and Guardfile files? Those three should be enough to help me reproduce the problem.

@e2 e2 added the info needed label May 30, 2016
@lokeshh
Copy link
Author

lokeshh commented May 30, 2016

Here are the files you asked for: https://gist.github.com/lokeshh/ef481aef3b7419dde606beb5ca4f0d5f

Thank you for looking into this.

The quick work around which you mentioned is working. Thanks a lot.

@e2
Copy link
Contributor

e2 commented May 30, 2016

Thanks so much for helping me reproduce this!

I'll release a fix shortly and close this when I'm done.

@e2
Copy link
Contributor

e2 commented May 31, 2016

An update fixing this is released: https://github.com/guard/guard-rspec/releases/tag/v4.7.1

Thanks again!

@e2 e2 closed this as completed May 31, 2016
@e2 e2 removed the info needed label May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants