I installed config_pages 8.x-2.3 and tried to execute some Drupal Console command and get the following error:

[Semantical Error] The annotation "@DrupalCommand" in class Drupal\config_pages\Command\GetValueCommand was   
  never imported. Did you maybe forget to add a "use" statement for this annotation? 

This error repeats at any command, so console is fully broken.

CommentFileSizeAuthor
#4 console-3059850-2.patch1008 bytesgun_dose

Comments

gun_dose created an issue. See original summary.

shumer’s picture

Assigned: Unassigned » shumer
shumer’s picture

Thx for report, looks like we need to add some test for Drupal console functionality.

gun_dose’s picture

StatusFileSize
new1008 bytes

Here is patch to fix this. Just added use Drupal\Console\Annotations\DrupalCommand; statements in commands.

  • shumer committed 5a68652 on 8.x-2.x
    Issue #3059850 by shumer: Drupal Console is broken when Config Pages 8.x...

  • shumer committed 0d8df0c on 8.x-3.x
    Issue #3059850 by shumer: Drupal Console is broken when Config Pages 8.x...
shumer’s picture

Status: Active » Fixed
shumer’s picture

@gun_dose, missed your patch, but the solution was the same )

gun_dose’s picture

The fastest bug fix ever :)

shumer’s picture

Well, this bug can be really annoying for those who using this module (and I hope there is a lot of people who do that), so we need to be as fast as we can :)

Status: Fixed » Closed (fixed)

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