Drush fails if machine name of new theme ends with "_basic"

Created on 31 October 2017, almost 8 years ago
Updated 17 July 2025, 3 months ago

Funny story, and not important at all, but I just found out.

If you use drush to create your basic-based theme, and the machine name ends with _basic, then drush fails:

$ drush basic-install
Checking for npm...
npm was found.
-----------------------------
Welcome to the Basic Install!
-----------------------------
We will perform the automated tasks for you to use your new theme. We will create a copy of the Basic theme and store it in the standard theme directory or in spescified destination.
Do you wish to continue? (y/n): y
Please enter the name of that you want for your theme [My Theme]: whatever basic
Please enter a machine-readable name for your new theme [whatever_basic]:
The given path /tmp/whatever_basic is not a directory.                                                                                                                                           [error]
Failed to rewrite files and contents while generating theme.                                                                                                                                     [error]
$ drush basic-install
Checking for npm...
npm was found.
-----------------------------
Welcome to the Basic Install!
-----------------------------
We will perform the automated tasks for you to use your new theme. We will create a copy of the Basic theme and store it in the standard theme directory or in spescified destination.
Do you wish to continue? (y/n): y
Please enter the name of that you want for your theme [My Theme]: i like basic
Please enter a machine-readable name for your new theme [i_like_basic]:
The given path /tmp/i_like_basic is not a directory.                                                                                                                                             [error]
Failed to rewrite files and contents while generating theme.                                                                                                                                     [error]

I don't have time to debug now, I may check again in the future. I just drop this here as a reference point.
(Or maybe there are already instructions about this but I missed them?)

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇳🇴Norway efpapado

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024