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.
Comment | File | Size | Author |
---|---|---|---|
#5 | radix_failing_drush.png | 288.05 KB | sobi3ch |
sobi3ch-blog radix create failing Screenshot from 2014-01-11 15:42:12.png | 138.46 KB | sobi3ch |
Comments
Comment #1
shadcn CreditAttribution: shadcn commentedIs this still happening?
Comment #2
shadcn CreditAttribution: shadcn commentedTry running "drush cc drush" before running "drush radix 'Subtheme'";
Comment #3
shadcn CreditAttribution: shadcn commentedComment #4
barraponto CreditAttribution: barraponto commentedActually, I think the option shouldn't even be available if radix is not enabled :/
Comment #5
sobi3ch CreditAttribution: sobi3ch commentedSorry guys same problem again, I've just install clean Drupal and radix just after it.
Commands to repeat:
Error message:
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.Comment #6
barraponto CreditAttribution: barraponto commented@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!Comment #7
sobi3ch CreditAttribution: sobi3ch commentedGot it, I'll try to create this patch if I find some time. thanks
Comment #9
raj45 CreditAttribution: raj45 commentedRunning
drush cc drush
before runningdrush radix "Awesome Theme" --bootswatch=flatly
fixed it for me.Comment #10
crane_cio CreditAttribution: crane_cio commentedI 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.
Comment #11
debain CreditAttribution: debain commentedtrue, same problem here. panopoly and drush 7.0.0
(radix version 7.x-3.0-rc4)
Comment #12
dobe CreditAttribution: dobe as a volunteer commentedsame as #10 but with drush 8.0.0
Comment #13
dobe CreditAttribution: dobe as a volunteer commentedReopening as I haven't found a fix yet.
Comment #14
dobe CreditAttribution: dobe as a volunteer commentedOk It does work. I just had to set radix as the "default" theme, not just enabling it