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

ERROR - Could not load 'guard/jasmine' #117

Closed
ot-thomas-williams opened this issue Mar 11, 2013 · 7 comments
Closed

ERROR - Could not load 'guard/jasmine' #117

ot-thomas-williams opened this issue Mar 11, 2013 · 7 comments

Comments

@ot-thomas-williams
Copy link

When using guard-jasmine version 1.12.0 or greater, I receive the following error after running:

bundle exec guard init jasmine

"ERROR - Could not load 'guard/jasmine' or '~/.guard/templates/jasmine' or find class Guard::Jasmine"

This is on windows 7. It is not a problem with earlier versions of guard-jasmine (I do not get the error with 1.11.1)

Here is my Gemfile:

source 'https://rubygems.org'

group :development do
gem 'wdm', :platforms => [:mswin, :mingw], :require => false
gem 'guard'
gem 'guard-jasmine'
end

@eventualbuddha
Copy link
Contributor

This wfm on Mac OS X. Can someone with access to a Windows 7 machine verify this?

@netzpirat
Copy link
Contributor

Can you please give us the information we kindly requested in the CONTRIBUTING.md when you filed an issue?

The given error message comes from Guard when the plugin class cannot be loaded. That Guard plugin class exists since the initial version of Guard::Jasmine and hasn't changed in any version, thus I assume it's an environmental issue.

@ot-thomas-williams
Copy link
Author

I am not sure what additional information you would like. My Guardfile is empty. I did test each version from 1.11.1 through today's 1.13.1 and 1.11.1 is the only one that appears to be working.

Looking at the diffs between versions, it looks like the use of require (in 1.12.0) instead of autoload (in 1.11.1) in jasmine.rb is the change that breaks it. I think that autoload is being deprecated, but I'm not sure why require isn't working as expected in this context.

@ot-thomas-williams
Copy link
Author

After further review, it looks like it was a problem with coverage.rb which was first included in 1.12.0. It appears to not correctly load Guard::Jasmine before trying to extend it.

@rud
Copy link
Contributor

rud commented Mar 12, 2013

See also twill88@18ebb0b which is included in #118

@netzpirat
Copy link
Contributor

Version 1.13.2 is released that fixes the issue. Thanks @twill88 for the fix!

@ericlbarnes
Copy link

I am on a mac and getting this same error:

ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.3.0]
Guard version 1.7.0

Then:

$ gem install guard-jasmine
Fetching: guard-jasmine-1.13.2.gem (100%)
Successfully installed guard-jasmine-1.13.2
$ guard init jasmine
13:27:55 - ERROR - Could not load 'guard/jasmine' or '~/.guard/templates/jasmine' or find class Guard::Jasmine

netzpirat added a commit that referenced this issue Apr 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants