Problem/Motivation

This issues is not unique to views_data_export, but it comes up when trying to keep D9 running while also supporting newer versions of PHP and Drush.

#3489598: After update drush quits with error "Trait not found" has a fix for it in https://git.drupalcode.org/project/search_api/-/merge_requests/203/diffs

In other cases like Devel, the answer is to update to Drush 12 (https://github.com/drush-ops/drush/issues/5941).

Steps to reproduce

Drupal 9.5.11, PHP 8.1.33, Drush 10 and drupal/views_data_export:^1.7

Proposed resolution

The quick fix is just to patch away https://git.drupalcode.org/project/views_data_export/-/tree/8.x-1.x/src/... or upgrade to supported versions of Drupal core and Drush.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kreynen created an issue. See original summary.

steven jones’s picture

Urgh. Drush.

steven jones’s picture

Related issues: +#3553622: Release 8.x-1.8
steven jones’s picture

Assigned: Unassigned » steven jones

Let's do what Search API did I reckon.

  • steven jones committed 918f0837 on 8.x-1.x
    [#3553478] fix: Trait "Drush\Commands\AutowireTrait" not found in...
steven jones’s picture

Status: Active » Fixed

Done. Thanks @kreynen for the issue and the clear path to resolution.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.