Turns out we could rely on drush_core_drupal_directory to get the Radix path without enabling Radix.
No more wtf, no more support requests due to this, no more sad pandas.

Comments

  • Commit aea09f9 on 7.x-3.x by barraponto:
    Issue #2223703 by barraponto: drush radix should work with radix theme...
shadcn’s picture

Thanks. This is a nice find.

shadcn’s picture

Status: Fixed » Closed (fixed)

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

shadcn’s picture

Status: Closed (fixed) » Active

Capi, let's talk about this again. This is giving errors on ubuntu and mac. Target 'radix' not found.

danielbeeke’s picture

Hello,

We are using the dev version. Without enabling the theme we get errors in the path.
Notice the double slash in "competence_thermometer//kits/default"
Enabling the theme seems to make it work.

peter@peter-fonkel:/var/aegir/platforms/competence_thermometer/sites/ct.peter$ drush radix "Competence Jacket" --machine_name=ct_jacket
Source directory /var/aegir/platforms/competence_thermometer//kits/default is not readable or does not exist.                                                                                             [error]
rename(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/default.info,/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/ct_jacket.info): No such file or        [warning]
directory drush.inc:798
file_get_contents(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/ct_jacket.info): failed to open stream: No such file or directory radix.drush.inc:197                            [warning]
file_put_contents(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/ct_jacket.info): failed to open stream: No such file or directory radix.drush.inc:199                            [warning]
file_get_contents(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/template.php): failed to open stream: No such file or directory radix.drush.inc:197                              [warning]
file_put_contents(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/template.php): failed to open stream: No such file or directory radix.drush.inc:199                              [warning]
file_get_contents(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/theme-settings.php): failed to open stream: No such file or directory radix.drush.inc:197                        [warning]
file_put_contents(/var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket/theme-settings.php): failed to open stream: No such file or directory radix.drush.inc:199                        [warning]
Successfully created the Radix subtheme "Competence Jacket" created in: /var/aegir/platforms/competence_thermometer/sites/all/themes/ct_jacket using the "default" kit.
shadcn’s picture

Thanks for the report. We will look into it. Your subtheme is working fine now?

danielbeeke’s picture

Yes works fine!

barraponto’s picture

What version of drush are you all using?

barraponto’s picture

danielbeeke’s picture

drush version 5.10.0

hmm rather old, isn't it?

barraponto’s picture

Yeah. Maybe I should check Drush version. But that function does exist in 5.10.

barraponto’s picture

Just tried it again with drush 8.0-dev and it does work without enabling Radix theme.
Should we warn about version compatibilities?

shadcn’s picture

Status: Active » Closed (outdated)

Closed as outdated. Feel free to reopen if not. Thank you.