Codeception 1.8.7 via Composer - wrong path to autoload.php

Created on 3 Sep 2014  路  4Comments  路  Source: Codeception/Codeception

I've just installed version 1.8.7 via Composer and I'm unable to run vendor/bin/codecept, as it tries to include vendor/bin/autoload.php instead of vendor/codeception/codeception/autoload.php.
You might want to patch it :-)

vagrant@precise64:/vagrant$ php vendor/bin/codecept bootstrap
PHP Warning:  require_once(/vagrant/vendor/bin/autoload.php): failed to open stream: No such file or directory in /vagrant/vendor/bin/codecept on line 7

Most helpful comment

My solution was simply to link to ./vendor/codeception/codeception/codecept instead of the one in ./vendor/bin/codecept for my alias which works without modifying any code.

All 4 comments

can you please tell me how to patch it? Thank you...

In my case I've just made a quick hack in my private repo - see commit 80cd093700d14c2750bb31c74357aeb18506123c.
The root cause appeared to be the fact that vendor/bin/codecept is supposed to be a symlink. If it is a straight copy (as it was in my case due to using Vagrant in rsync mode) - this is your main problem to fix :-)

oh, i see. Thank you so much :+1:

My solution was simply to link to ./vendor/codeception/codeception/codecept instead of the one in ./vendor/bin/codecept for my alias which works without modifying any code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nikolaykolev picture nikolaykolev  路  3Comments

sebastianneubert picture sebastianneubert  路  3Comments

sasha-x picture sasha-x  路  3Comments

Renkas picture Renkas  路  3Comments

centerax picture centerax  路  4Comments