search_api Drush error drush.service in composer

Created on 9 January 2023, almost 2 years ago
Updated 26 April 2023, over 1 year ago

Problem/Motivation

Drush error,
[debug] search_api commands loaded even though its constraint (^9 || ^10) is incompatible with Drush 11.4.0.
Broaden the constraint in modules/contrib/search_api/composer.json (see 'extra\drush\services' section) to remove this message. [0.24 sec, 12.26 MB]

The numbers refer to Drush version and not Drupal.

Steps to reproduce

drush cr
drush -vvv

Proposed resolution

A change like,
"drush.services.yml": "^9 || ^10"
->
"drush.services.yml": "^9 || ^10 || ^11"
in search_api/composer.json

Remaining tasks

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Drush / Rules

Created by

πŸ‡«πŸ‡·France Chris64 France

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.

  • πŸ‡¦πŸ‡ΉAustria drunken monkey Vienna, Austria

    Thanks for reporting this problem. However, I fear I cannot reproduce it. I run Drush 11.5.1, but get no such warnings (even with -vvv).
    Do you have a link to some documentation for the composer.json entry? If that indeed reflects the Drush version, then I guess it would still be correct to update it, even if we’re not sure it causes problems. (Perhaps Drush removed that check again since 11.4.0?)

  • πŸ‡«πŸ‡·France Chris64 France

    Done again. The message is got:

      [debug] search_api commands loaded even though its constraint (^9 || ^10) is incompatible with Drush 11.5.1. Broaden the constraint in modules/contrib/search_api/composer.json (see 'extra\drush\services' section) to remove this message. [0.25 sec, 12.41 MB]
    

    So the information is steel here with Drush 11.5.1. The Drupal version is 10.0.7. A drush cr is needed before a drush -vvv. This message doesn't appear after a second drush -vvv. Indeed, interesting to know if some others have this.

  • πŸ‡«πŸ‡·France Chris64 France

    @drunken monkey more information about the module version used: 8.x-1.29.

  • πŸ‡¦πŸ‡ΉAustria drunken monkey Vienna, Austria

    Thanks for keeping up your work on this. Not sure what changed, maybe I did something wrong the first time, but this time I could indeed reproduce that warning. I therefore committed your suggested change.
    Thanks again!

  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024