I have been trying to set up Drupal Console for quite some time now on Windows 7; however, there always seems to be some kind of error which I am unable to solve.
I have installed Drupal Console via the drupal.phar way which I placed in a directory that is included in the PATH variable and it gets called properly. However, every time I call the console from the command line it gives me the following notice:
Notice: Undefined index: commands in phar://C:/_Skripty/drupal/vendor/drupal/console-core/src/Utils/ConfigurationManager.php on line 273
The second weird thing is that I want to use it in multiple project and it does actually seem to be working, in a way, in one of the projects but not in the other. For example, I am able to get the list of available commands in one, but running that same command in the other produces the following fatal error in addition to the above mentioned notice.
Fatal error: Trait 'Drupal\Console\Command\Shared\ModuleTrait' not found in C:\xampp\htdocs\sam_stroje\modules\metatag\src\Command\GenerateGroupCommand.php on line 32
I suspect that this might be caused by some modules not correctly implementing the stuff that has to do something with the console but I'm not 100% sure.
What might be the cause of these problems? Thanks in advance for all replies.