Problem/Motivation
Today I run the git pull command, I got some updated code. When I run drupal cache:rebuild all (using drupal console). I got the following error (image uploaded). I tried to cache clear from admin/config/development/performance, cache was cleared successfully.

I tried to find out the issue from the class YamlFileLoader.php-
Here is the actual object Initiates-
if (isset($service['parent'])) {
$definition = new DefinitionDecorator($service['parent']);
} else {
$definition = new Definition();
}
It's look like OK. But I don't know why I got this error from my terminal.
| Comment | File | Size | Author |
|---|---|---|---|
| fatal-error-drupal-core-8.2.x.png | 210.64 KB | imrancluster |
Comments
Comment #2
dawehnerJust an idea, did you forgot to
composer installafter your update?Comment #3
imrancluster commented@dawehner , No, I didn't forgot to run the command. But I am still facing the problem.
Comment #4
joelpittetI can confirm composer install has been run as well and i'm seeing this on the latest 8.1.x branch.
I just ran this command through drupal console when I noticed it:
drupal site:mode devSame callstack in the error. This is a bug so we can put it in 8.1.x
Comment #5
imrancluster commentedYesterday, I tried to install Drupal 8 latest beta version using drupal console in my Mac laptop. Whey I run
drupal site:install, I got the same error. But I followed the same steps in my office linux (ubuntu) , fortunately I didn't see any error, every drupal console command was working smoothly.I am not sure, Is it my laptop ( mac os x ) problem or a bug.
Comment #6
joelpittetAh I found it!
Drupal console is using a different version of DefinitionDecorator.
DrupalConsole is missing
setDeprecated()DrupalConsole/vendor/symfony/dependency-injection/DefinitionDecorator.php
D8 has it
vendor/symfony/dependency-injection/DefinitionDecorator.php
Added here.
https://github.com/symfony/symfony/commit/83f4e9cf4576fd5efb7ecfe8f7acc5...
Reason: drupal uses ~2.8|~3.0.0 for dependency-injection and drupal composer uses ~2.7
So I guess it would have to upgrade?
Comment #7
joelpittetAh there is already an issue for this.
https://github.com/hechoendrupal/DrupalConsole/issues/2061
Comment #8
mixel commentedThanks for the Drupalconsole link joelpittet.
A short summery (as far as I understood) => Drupalconsole 0.11 version works for D8.0. You need to wait for Drupalconsole 0.12 for a D8.1 version.
I just run site:install and indeed 0.11 works still fine with D8.0
Comment #9
mixel commentedJust noticed Drupalconsole 1.0.0-alpha1 exist and should give support for D8.1
=> https://github.com/hechoendrupal/DrupalConsole/releases/tag/1.0.0-alpha1
So I guess this issue can be closed. Working on the incompatibility between Drupal and Symphony components looks like another issue.
Comment #10
alexrayu commentedThis has been fixed in the latest version of Drupal console. Please do
drupal self-update.Comment #11
imrancluster commentedThanks for all :), I'll will update my console today.
Comment #12
Strutsagget commentedI still got this in 0.11.2
Comment #13
blairski commentedHi Strutsagget
Did you run
composer installafterdrupal self-update?