Closed (fixed)
Project:
radix
Version:
8.x-4.10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2020 at 11:37 UTC
Updated:
21 Feb 2022 at 11:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
elamanTry running
drush radix "SUB THEME".Comment #3
elamanComment #4
yi_jiang commentedI got the same issue, upgrade drush fixed.
Similar issue: https://www.drupal.org/project/bootstrap_storybook/issues/3178927
Comment #5
timlie commented#2 works for me.
Comment #6
timlie commentedComment #7
ckngPlease reopen if this is still an issue. Documentation needs update, also Drush 8 is required, Drush 9/10 is recommended.
Comment #8
nikitas commentedHi, on a fresh drupal 9 installation i get the following error
This is my composer.json file:
Can you help ?
Thank you
Comment #9
nikitas commentedFixed: i was able to fix the issue above by adding to the main drupal composer.json file the missing Robo library. I am using drush 10.6, drupal 9.2.7, components 8.x-2.4 and radix 4.x-dev .
My updated composer.json file looks like this (in the bottom of the composer.json file):
//Last lines of composer.json file
"require-dev": {
"consolidation/robo": "^1.0.0",
"drush/drush": "^10.6"
}
}
Do not forget to run "composer update" after adding the missing Robo library.
Comment #10
voviko commentedit is necessary to install
composer require "boedah/robo-drush"Comment #11
charly71 commentedI'm still not able to install radix subtheme in a starting Drupal 9.3 installation. Same error for me...
I've installed consolidation/robo and boedah/robo-drush.
Comment #12
gloomcheng commented@charly71 you could try this patch.
Comment #13
jcandan commentedRan into this issue on a fresh Drupal 9 instance with
drush:10.6.2anddrupal/radix:4.x-dev.Patch from #12 fixed this issue for me.
Comment #14
lordgretix commentedEdit: Sorry, I pasted the error twice.
On a fresh Drupal 9.3.3 with drush 11.0.2 im having this issue. The patch fixes the issue, however it throws a new issue.
Im guessing that this is related to dependecy issue, since radix requires consolidation/robo:^1.1.4 || ^2 and drush 11.x uses consolidation/robo:^3
Comment #15
jcandan commented@Endika Melero, consider reporting that in a new issue, perhaps to support Drush 11.
In that case, @Endika Melero has also tested patch #12 works. In order to see this merged, should documentation be updated to state that, for now, Radix supports Drush 9 and 10 only?
Comment #17
doxigo commentedThanks to @Endika, pushed the #12 patch to the dev release, have to look into the Drush 11 issue afterward
Comment #18
doxigo commentedClosing this and created a related task: https://www.drupal.org/project/radix/issues/3259559
Comment #19
mauzilla commentedAnyone willing to tell me how to apply / install the patch?
Comment #20
doxigo commented@mauzilla try the latest dev instance with Drush 10 for now, should be okay
Comment #21
jcandan commented@mauzilla, you may find this article helpful: https://www.mediacurrent.com/blog/composer-patches-dependency-your-proje...
Comment #22
katekarpenko commentedI also had this issue, again.
This time from the groud I've used
Drush Version 10.6.1and performed this:drush --include="docroot/themes/contrib/radix" radix:create "radix subtheme"and have got an error like this:
PHP Fatal error: Trait 'Robo\Task\Archive\Tasks' not found in /var/www/html/docroot/themes/contrib/radix/Commands/radix/SubThemeCommands.php on line 24I've tried a lot of methods to fixed that, unfortunately pacth hadn't work for me, and only one thing helped me - updating consolidation/robo by using next command:
composer require consolidation/robo:^3 -Wand creating a radix subtheme was successfull:
Comment #23
nikitas commentedi was able to create a subtheme only with after updating the robo to ^3 as KateKarpenko in
#22 suggests (https://www.drupal.org/project/radix/issues/3173811#comment-14385211)