You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP Warning: include_once(D:\[...]\MyOidc\libs\pestphp\pest/vendor/autoload.php): Failed to open stream: No such file or directory in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 63
PHP Stack trace:
PHP 1. {main}() D:\[...]\MyOidc\libs\bin\pest:0
PHP 2. include() D:\[...]\MyOidc\libs\bin\pest:119
PHP 3. {closure:D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:12-99}() D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:99
Warning: include_once(D:\[...]\MyOidc\libs\pestphp\pest/vendor/autoload.php): Failed to open stream: No such file or directory in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 63
Call Stack:
0.0002 559592 1. {main}() D:\[...]\MyOidc\libs\bin\pest:0
0.0003 571984 2. include('D:\[...]\MyOidc\libs\pestphp\pest\bin\pest') D:\[...]\MyOidc\libs\bin\pest:119
0.0004 572368 3. {closure:D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:12-99}() D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:99
PHP Warning: include_once(): Failed opening 'D:\[...]\MyOidc\libs\pestphp\pest/vendor/autoload.php' for inclusion (include_path='.;C:\php\pear') in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 63
PHP Stack trace:
PHP 1. {main}() D:\[...]\MyOidc\libs\bin\pest:0
PHP 2. include() D:\[...]\MyOidc\libs\bin\pest:119
PHP 3. {closure:D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:12-99}() D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:99
Warning: include_once(): Failed opening 'D:\[...]\MyOidc\libs\pestphp\pest/vendor/autoload.php' for inclusion (include_path='.;C:\php\pear') in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 63
Call Stack:
0.0002 559592 1. {main}() D:\[...]\MyOidc\libs\bin\pest:0
0.0003 571984 2. include('D:\[...]\MyOidc\libs\pestphp\pest\bin\pest') D:\[...]\MyOidc\libs\bin\pest:119
0.0004 572368 3. {closure:D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:12-99}() D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:99
PHP Fatal error: Uncaught Error: Class "Symfony\Component\Console\Input\ArgvInput" not found in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:69
Stack trace:
#0 D:\[...]\MyOidc\libs\pestphp\pest\bin\pest(99): {closure}()
#1 D:\[...]\MyOidc\libs\bin\pest(119): include('D:\\[...]\\...')
#2 {main}
thrown in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 69
Fatal error: Uncaught Error: Class "Symfony\Component\Console\Input\ArgvInput" not found in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 69
Error: Class "Symfony\Component\Console\Input\ArgvInput" not found in D:\[...]\MyOidc\libs\pestphp\pest\bin\pest on line 69
Call Stack:
0.0002 559592 1. {main}() D:\[...]\MyOidc\libs\bin\pest:0
0.0003 571984 2. include('D:\[...]\MyOidc\libs\pestphp\pest\bin\pest') D:\Gilles\Docs\projets\MyOidc\libs\bin\pest:119
0.0004 572368 3. {closure:D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:12-99}() D:\[...]\MyOidc\libs\pestphp\pest\bin\pest:99
Composer explicitly support custom vendor directory, so Pest must support them.
I'll see if there's an easy modification I can make to correct this.
#!/usr/bin/env php
<?php
/**
* Proxy PHP file generated by Composer
*
* This file includes the referenced bin path (../pestphp/pest/bin/pest)
* using a stream wrapper to prevent the shebang from being output on PHP<8
*
* @generated
*/
namespace Composer;
$GLOBALS['_composer_bin_dir'] = __DIR__;
$GLOBALS['_composer_autoload_path'] = __DIR__ . '/..'.'/autoload.php';
if (PHP_VERSION_ID < 80000) {
[...]
So, if I replace Line 54 of pestphp/pest/bin/pest :
it's working for me.
But this fix is linked to the version of composer (2.7.2) and i don't know in which version composer introduce $GLOBALS['_composer_autoload_path'] and which minimum version of composer you want to support.
So I don't make PR. (I don't want to break other people.)
What Happened
I use composer config to change
vendor/
directory tolibs/
. (see : https://getcomposer.org/doc/06-config.md#vendor-dir )But when I use
./libs/bin/pest --init
, I have somes error :Composer explicitly support custom vendor directory, so Pest must support them.
I'll see if there's an easy modification I can make to correct this.
How to Reproduce
composer install --dev
./libs/bin/pest --init
Sample Repository
No response
Pest Version
2.34
PHP Version
8.2.16
Operation System
Windows
Notes
No response
The text was updated successfully, but these errors were encountered: