Skip to content
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

Fix lost library class-loader #24

Merged
merged 2 commits into from Nov 21, 2012
Merged

Fix lost library class-loader #24

merged 2 commits into from Nov 21, 2012

Conversation

beshkenadze
Copy link
Contributor

PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'The "/src/Cilex/../../vendor/symfony/class-loader/Symfony/Component/ClassLoader" directory does not exist.' in /vendor/symfony/finder/Symfony/Component/Finder/Finder.php:497

PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The "/src/Cilex/../../vendor/symfony/class-loader/Symfony/Component/ClassLoader" directory does not exist.' in /vendor/symfony/finder/Symfony/Component/Finder/Finder.php:497
@mvriel
Copy link
Member

mvriel commented Sep 13, 2012

Class loader was removed from the composer file because Cilex doesn't need it anymore; it should be investigated why you receive this error and correct that

@beshkenadze
Copy link
Contributor Author

ok, removed :)

@adamlundrigan
Copy link

Received same error today with fresh clone of Cilex:

$ git clone git://github.com/Cilex/Cilex.git
Cloning into 'Cilex'...
remote: Counting objects: 227, done.
remote: Compressing objects: 100% (114/114), done.
remote: Total 227 (delta 110), reused 202 (delta 85)
Receiving objects: 100% (227/227), 33.70 KiB, done.
Resolving deltas: 100% (110/110), done.
$ cd Cilex;
$ composer install;
Loading composer repositories with package information
Installing dependencies from lock file
  - Installing pimple/pimple (1.0.0)
    Downloading: 100%         

  - Installing symfony/console (v2.1.0)
    Downloading: 100%         

  - Installing symfony/finder (v2.1.0)
    Downloading: 100%         

  - Installing symfony/process (v2.1.0)
    Downloading: 100%         

Generating autoload files
$ php compile;

Exception:

PHP Fatal error:  Uncaught exception 'InvalidArgumentException' with message 'The "<dir>/Cilex/src/Cilex/../../vendor/symfony/class-loader/Symfony/Component/ClassLoader" directory does not exist.' in <dir>/Cilex/vendor/symfony/finder/Symfony/Component/Finder/Finder.php:497
Stack trace:
#0 <dir>/Cilex/src/Cilex/Compiler.php(58): Symfony\Component\Finder\Finder->in('...')
#1 <dir>/Cilex/compile(13): Cilex\Compiler->compile()
#2 {main}
  thrown in <dir>/Cilex/vendor/symfony/finder/Symfony/Component/Finder/Finder.php on line 497

The class Cilex\Compiler still references the filepath to symfony/class-loader on line 58:

        $finder->files()
            ->ignoreVCS(true)
            ->name('*.php')
            ->notName('Compiler.php')
            ->in(__DIR__.'/..')
            ->in(__DIR__.'/../../vendor/pimple/pimple/lib')
            ->in(__DIR__.'/../../vendor/symfony/class-loader/Symfony/Component/ClassLoader')  //58
            ->in(__DIR__.'/../../vendor/symfony/console/Symfony/Component/Console')
        ;

EDIT: Should have read the second commit attached to this PR...the OP already discovered the source of the problem and fixed it :)

mvriel added a commit that referenced this pull request Nov 21, 2012
Fix lost library class-loader
@mvriel mvriel merged commit 0a494dc into Cilex:master Nov 21, 2012
@mvriel
Copy link
Member

mvriel commented Nov 21, 2012

Thanks for your pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants