Hi everybody
I am under Win7-64, and Xampp/php 5.6
I've set up the drupal console in C:\drupalconsole. Now if I open a command line, move to this folder and type in : drupal list, it works.
But When I move into my drupal project C:\xampp\htdocs\drupal8, I get these errors:
PHP Warning: include_once(C:\xampp\htdocs\drupal8\vendor\bin\drupal.php): faile
d to open stream: No such file or directory in phar://C:/drupalconsole/drupal.ph
ar/src/Utils/Launcher.php on line 32

Warning: include_once(C:\xampp\htdocs\drupal8\vendor\bin\drupal.php): failed to
open stream: No such file or directory in phar://C:/drupalconsole/drupal.phar/sr
c/Utils/Launcher.php on line 32
PHP Warning: include_once(): Failed opening 'C:\xampp\htdocs\drupal8\vendor\bin
\drupal.php' for inclusion (include_path='C:\xampp\php\PEAR') in phar://C:/drupa
lconsole/drupal.phar/src/Utils/Launcher.php on line 32

Warning: include_once(): Failed opening 'C:\xampp\htdocs\drupal8\vendor\bin\drup
al.php' for inclusion (include_path='C:\xampp\php\PEAR') in phar://C:/drupalcons
ole/drupal.phar/src/Utils/Launcher.php on line 32

What can I do ? Is it something special that we should do in the project folder (like drupal init, but this command send me the same as above, though...). I found very few topics on this matter...
Any idea welcome.

Comments

luenemann’s picture

Had the same Problem and created a pull request on github:
https://github.com/hechoendrupal/drupal-console-launcher/pull/48

artatum’s picture

thx.

luenemann’s picture

artatum’s picture

Gorgeous ! it works ! You wowed !
I'd like to understand what happened (and definitly dont understand what's said on github), nevertheless it's working.
Thanks luenemann, you saved me !

luenemann’s picture

My Pull Request was excepted and is included in v.1.0.0-rc9.
https://github.com/hechoendrupal/drupal-console-launcher/releases/tag/1....

The difficulty is that composer generates different things in vendor/bin for windows and linux.
On linux vendor/bin/drupal is a symlink to vendor/drupal/console/bin/drupal.
On windows it's a file with a shell script to call vendor/drupal/console/bin/drupal.

You've installed drupal-console-launcher globally. When you start it, it's searching for the drupal-console executable in your project folder and tries to invoke that. This process needed vendor/bin/drupal to be a symlink.

In v.1.0,0-rc9 drupal-console-launcher is searching directly for vendor/drupal/console/bin/drupal, and there is no difference on windows and linux.