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

Drop removed stuff from autoloader #9

Open
b1rdex opened this issue Oct 15, 2019 · 3 comments
Open

Drop removed stuff from autoloader #9

b1rdex opened this issue Oct 15, 2019 · 3 comments

Comments

@b1rdex
Copy link

b1rdex commented Oct 15, 2019

The tool should also remove things from autoloader, especially from the class map. Such missing files produce errors on every composer call:

composer require name/redacted
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/AbstractFixerTestCase.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/AbstractIntegrationCaseFactory.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/AbstractIntegrationTestCase.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/Assert/AssertTokensTrait.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/IntegrationCase.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/IntegrationCaseFactory.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/IntegrationCaseFactoryInterface.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/Test/InternalIntegrationCaseFactory.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/path/redacted/friendsofphp/php-cs-fixer/tests/TestCase.php" which does not appear to be a file nor a folder
    1/1:        https://repo.packagist.org/p/provider-latest$c7ca06476ab8ecb0cc6ceef2014da81f720cf5007b793f5709cb26fe63e9169b.json
    Finished: success: 1, skipped: 0, failure: 0, total: 1

As you can see, I have friendsofphp/php-cs-fixer in require-dev section.

@b1rdex
Copy link
Author

b1rdex commented Oct 15, 2019

These files are mentioned in autoload_classmap.php, autoload_static.php and installed.json in vendor/composer directory. The issue has gone after removing them from installed.json, looks like autoload files aren't related.

@ssx
Copy link
Owner

ssx commented Oct 15, 2019 via email

@b1rdex
Copy link
Author

b1rdex commented Oct 15, 2019

Example:

cd /tmp && mkdir zzz && cd zzz
composer require --dev friendsofphp/php-cs-fixer ssx/skrub
composer skrub --perform
composer validate
cd .. && rm -rf zzz

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

No branches or pull requests

2 participants