I have an issue with Omega 4.x,
I want to use the Omega commands with drush, if I set Omega as my default theme it is possible to execute
drush omega-xxx commands

When I activate my subtheme create with drush omega-wizard and set it as default I have this error

Command omega-guard needs the following module(s) enabled to run: omega.
The drush command 'omega-guard' could not be executed.

Running drush cc all or drush cc drush does not change anything.
I don't have Omega Tools module installed.

I'm on a Drupal Commerce Kickstart 2 environnement.

I can run bundle exec guard as an alternative but I don't know if it's doing the same thing as omega command, is it just an alias ?

Thanks in advance for the help you could bring me.

Comments

pkeyes’s picture

I tried every solution I could find, finally hit on this one:

https://www.drupal.org/node/2445531

Installed default Omega theme in themes dir, disabled active themes through UI, then enabled Omega. Was then able to use Omega drush commands to create subtheme, work with Compass, etc.

Internet’s picture

Received this message on Omega4 site after upgrading drush to v8 along with other system requirements for D8. Enabling the omega base theme and setting it as default, then resetting the subtheme as default and clearing cache worked.

steinmb’s picture

Status: Active » Fixed

Either you need make sure the Omega theme is enabled and default or you need to run drush 6.x.

Status: Fixed » Closed (fixed)

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

ivanhelguera’s picture

but this happens when one wants to work with an omega subtheme?

ivanhelguera’s picture

Status: Closed (fixed) » Needs work
steinmb’s picture

Status: Needs work » Closed (won't fix)

Then try a different version of Drush. Drush 5 or 6 -series might fix this. It is not really a Omega related problem. Have a look in the Drush issue queue on github.

lebachai’s picture

#2 by Internet worked for me. Thanks!

finaukaufusi’s picture

#2 works for me. Thank you for sharing.

isaacrc’s picture

#2 Thanks , Works like a charm!

Ujin’s picture

I had similar issues, I ran drush cc drush and that fixed the issue.