I love the omega-guard drush implementation.
However, I can't start it, due to the following error

ERROR: guard start was called with arguments ["--no-color"]

If I remove the --no-color from the omega.drush.inc file in the following line. It's ok.
$command = 'bundle exec guard --no-color --no-interactions';
Is it a valid argument? Or do I miss something on my system?

CommentFileSizeAuthor
#9 2008896-9-omega-guard-no-color.patch488 bytesjoelpittet
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dddbbb’s picture

I'm also experiencing this issue.

fubhy’s picture

Will look into it on Monday. Note: You can also navigate into the subtheme folder and use "bundle exec guard" to achieve (nearly) the same effect.

segovia94’s picture

I have the same issue. In addition, when trying to do "bundle exec guard", it starts but then throws an error.
c:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.3/lib/listen/adapter.rb:195:in `require': cannot load such file -- wdm (LoadError)

fubhy’s picture

c:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-1.0.3/lib/listen/adapter.rb:195:in `require': cannot load such file -- wdm (LoadError)

That's a problem with your setup. You are missing a dependency (wdm). Fix: "gem install wdm" (looks like you are on Windows, right?). Not sure why it requires wdm, I thought it works without that. But oh well, if it needs it, just install it.

segovia94’s picture

Yep, Windows 7. That's the funny thing. wdm is installed already.

I came across this post which fixed the wdm issue for me.
http://stackoverflow.com/questions/16232960/guard-wont-load-wdm

So using the suggestion there allows "bundle exec guard" to work. However "drush omega-guard" still throws the "--no-color" error.

jdflorez’s picture

One question Segovia, what does the file .ruby-version (thats in your theme folder) say?

segovia94’s picture

The ruby version is 1.9.3. Originally I was on 1.9.1, but I uninstalled it thinking that perhaps I had something installed incorrectly. However, 1.9.3 gave the same results.

Adam S’s picture

I had a similiar problem on Windows 7. I'll post it here because it probably has the same cause as this and will show in Google and issue queue searches.

on windows at C;\wamp\www\MYSITE\sites\all\themes\MYOMEGASUBTHEME compass watch is typed in. The response is

LoadError on line ["106"] of C: cannot load such file -- toolkit
Run with -- trace to see the full backtrace

After some fidgeting trying to uninstall and reinstall Sass, Compass, and Susy, I tried gem install toolkit. When I type compass watch things work like they should.

joelpittet’s picture

Status: Active » Needs review
FileSize
488 bytes

Removing the --no-color flag seems to fix the issue. Here's a patch.

tanc’s picture

Status: Needs review » Reviewed & tested by the community

Confirmed #9. Removing --no-color allows guard to run fine.

fubhy’s picture

Status: Reviewed & tested by the community » Needs work

I put the --no-color there for a reason (because otherwise the output can't be parsed properly). This is not a solution. Will take a look and see how we can integrate the guard console better with drush. Again, as a temporary solution you can just invoke "bundle exec guard" manually, although that requires you to navigate into the theme folder.

fubhy’s picture

Status: Needs work » Fixed

Commited to 4.x-dev with some slight modifications. Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.