-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite loop when trying to enable not available extensions in Drupal 8 #5
Comments
This may be related, or maybe it needs a separate issue, but you get an infinite loop when attempting to enable a package where the project name exists but the project does not contain a module of the same name. For example, in Drupal 7, if you try
|
Just to confirm that this is still broken for Drupal 8, it works for Drupal 7 though. |
Still broken on Drupal 8. Anyone have links to where this was fixed for Drupal 7? |
It was never broken for Drupal 7. Problem is that |
Problem is exactly here: http://cgit.drupalcode.org/drupal/tree/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php#n188 It won't scan again the filesystem after we downloaded the modules, and there's no method to reset this cache. |
@jonhattan did you see my report above? try |
@kostajh, you're right. It is broken this way for any Drupal version, because of the assimetry between project names and extension names (a funny example is The case for Drupal 8 is different. It is broken where Drupal 7,6,5 works, as explained above. |
Related issue in drupal.org: https://www.drupal.org/node/2503927 |
I think it would be better to open an actual major bug report instead of hoping on the conversion, which might not solve the bug after all. |
I "fixed" the bug for DrupalConsole in hechoendrupal/drupal-console@2311c47 (last two files) |
I arrived to the same solution yesterday. It is pending a proper implementation within drush. http://www.pasteall.org/59559/diff |
I'm using drush 8.0-dev with D7. Here is my scenario:
Few issues which I've found:
P.S. This was actually my mistake, as I should enable |
If I try to install a D8 module using drush 7 with ✝ d8 ✝ /var/www/site/docroot/d8.dev $ drush en admin_toolbar -y admin_toolbar was not found. [warning] The following projects provide some or all of the extensions not found: [ok] admin_toolbar Would you like to download them? (y/n): y Project admin_toolbar (8.x-1.9) downloaded to /var/www/site/docroot/d8.dev//modules/admin_toolbar. [success] Project admin_toolbar contains 2 modules: admin_toolbar_tools, admin_toolbar. admin_toolbar was not found. [warning] The following projects provide some or all of the extensions not found: [ok] admin_toolbar Would you like to download them? (y/n): y Install location /var/www/site/docroot/d8.dev//modules/admin_toolbar already exists. Do you want to overwrite it? (y/n): y Project admin_toolbar (8.x-1.9) downloaded to /var/www/site/docroot/d8.dev//modules/admin_toolbar. [success] Project admin_toolbar contains 2 modules: admin_toolbar_tools, admin_toolbar. admin_toolbar was not found. [warning] The following projects provide some or all of the extensions not found: [ok] admin_toolbar Would you like to download them? (y/n): y Install location /var/www/site/docroot/d8.dev//modules/admin_toolbar already exists. Do you want to overwrite it? (y/n): y and on and on... |
Fix/3: Install Drush with composer
Same here, using the latest version |
Original issue at https://drupal.org/node/1989202
The text was updated successfully, but these errors were encountered: