[warning] No components found for project, is it enabled?

Created on 13 May 2025, 25 days ago

Version

When a component does not have any issues, a warning is shown: [warning] No components found for myproject, is it enabled? Try run this command with `--install`

Command finishes with 0 exit code, so this issue is just visual.

  • Drupal version: 11
  • Twig version: 3.16

Problem/Motivation

See below

Steps to reproduce

  1. Create a component with no validation errors
  2. Run drush sdc-devel:validate myproject myproject:mycomponent
  3. Observe [warning] No components found for myproject, is it enabled? Try run this command with `--install`

If I introduce an piece of code that triggers violation and re-run the same command - the command correctly fails.

Proposed resolution

N/A

Remaining tasks

N/A

User interface changes

None

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

N/A

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia alex.skrypnyk Melbourne

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

Comments & Activities

Production build 0.71.5 2024