I'm not sure this a bug but it took me a while to figure out what's happening. So I've download fresh radix theme using drush and then try to create my own sub-theme using 'radix' drush subcommand. Then it kept failing whatever I've try to do. I immediately realize there a missing 'site/all/themes/radix' path part when 'radix' command try to copy starter directory but it took me couple moments to figure out it's happening because I forget to enable radix theme itself.

I think it could be nice solution to stop script if radix theme is not enabled and prompt user to do it before she/he can continue.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shadcn’s picture

Is this still happening?

shadcn’s picture

Try running "drush cc drush" before running "drush radix 'Subtheme'";

shadcn’s picture

Status: Active » Closed (cannot reproduce)
barraponto’s picture

Actually, I think the option shouldn't even be available if radix is not enabled :/

sobi3ch’s picture

Status: Closed (cannot reproduce) » Needs work
FileSize
288.05 KB

Sorry guys same problem again, I've just install clean Drupal and radix just after it.
Commands to repeat:

drush dl drupal
drush site-install -y .......
drush dl radix
drush radix "My super theme"

Error message:

Command radix needs the following module(s) enabled to run: radix.

Please check attached screenshot.

@barraponto So in my opinion it should be then strongly documented on project site and README file. I think it in case is radix is disabled it should actually ask user to enabled with (Y/n) option. So if you pass drush -y option it will enable it automatically.

barraponto’s picture

Status: Needs work » Fixed

@sobi3ch yeah, but I'd say that message is enough. If you want drush radix to enable the theme for the user (which is just a call to theme_enable) I suggest opening a new issue. Of course, patches welcome!

sobi3ch’s picture

Got it, I'll try to create this patch if I find some time. thanks

Status: Fixed » Closed (fixed)

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

raj45’s picture

Running drush cc drush before running drush radix "Awesome Theme" --bootswatch=flatly fixed it for me.

crane_cio’s picture

I am getting the same error / problem.
fresh install of panopoly distro then
drush dl radix
manually enabled radix layouts in modules and in themes
ran drush cc drush and drush cc all
still get same error as noted above.

debain’s picture

true, same problem here. panopoly and drush 7.0.0
(radix version 7.x-3.0-rc4)

dobe’s picture

same as #10 but with drush 8.0.0

dobe’s picture

Status: Closed (fixed) » Active

Reopening as I haven't found a fix yet.

dobe’s picture

Status: Active » Closed (works as designed)

Ok It does work. I just had to set radix as the "default" theme, not just enabling it