-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer Installation Yields Unusable Project #96
Comments
У меня точно такой же баг. Через composer Codeception не работает... |
Yep, sorry. It might that composer updates broke current package. Because I checked the installation just before the last release. I'm going to fix that on weekend. Right now you can use the phar version as it's the most stable to any external changes. PEAR version can do the thing too. |
These are the reasons I recommend using phar. It's stable. I build a package one time and it works. For come reasons Composer generated this autoload file.
Just because some classes ends with "" and some are note UniversalAutoloader fails to load them. Anyway it is fixed now ) |
SUMMARY
When doing an installation of Codeception via Composer, the codecept script ends up being unusable because of a bad directory reference in Codeption's autoload.php file.
The file:
'[...]/vendor/Codeception/Codeception/autoload.php'
probably intends to load:
'[...]/vendor/composer/autoload_namespaces.php'
but instead it ends up asking to load:
'[...]/vendor/Codeception/Codeception/vendor/composer/autoload_namespaces.php'
which doesn't exist.
This renders the installation via Composer unusable. :-(
STEPS TO REPRODUCE
In a brand new directory, create a new composer.json file, as described in the installation instructions of the manual:
Then, using your Terminal, cd into your new directory, and install Codeception via Composer:
If everything goes well, after a few minutes you should have your 'vendor' sub-directory, and also the Composer 'autoload.php' file in your project directory.
According to the installation instructions, you should now be able to run the 'codecept' command, found inside the 'vendor/bin' directory, like this:
Doing that, however, yields the following error:
The user is not able to execute the codecept script.
The text was updated successfully, but these errors were encountered: