Report missing extensions if a message isn't set in RecipeMissingExtensionsException

Created on 18 November 2022, over 2 years ago
Updated 7 November 2023, over 1 year ago

Problem/Motivation

This exception is true, but doesn't tell the developer or user what extensions are actually missing. Let's set a good default exception message if one isn't passed in.

andrew@distributions-recipes-web:/var/www/html$ php core/scripts/drupal recipe ./pathauto/
# a simplified recipe

In InstallConfigurator.php line 112:

  [Drupal\Core\Recipe\RecipeMissingExtensionsException]


recipe <path>

Steps to reproduce

Try this recipe in a fresh site:

# a simplified recipe
name: 'Pathauto example recipe'
description: "An example recipe showing the activation of the pathauto module"
type: 'Content'
install:
  - pathauto
  - ctools

Proposed resolution

Set a message with a sorted list of missing extensions.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ“Œ Task
Status

Fixed

Version

10.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada deviantintegral

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