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

Installation fails with "squizlabs/php_codesniffer/CodeSniffer.php" file not found error #147

Closed
86me opened this issue Nov 12, 2017 · 1 comment

Comments

@86me
Copy link

86me commented Nov 12, 2017

I'm trying to set up the php-console server portion to use on a Drupal 8 web site. composer require php-console/php-console call (in the root of my Drupal installation with a composer.json file) fails with the following output:

Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Exception.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Fixer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Report.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Reporting.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Sniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokens.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Reports/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/DocGenerators/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractPatternSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractScopeSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractVariableSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/IncorrectPatternException.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/" which does not appear to be a file nor a folder
Using version ^3.1 for php-console/php-console
./composer.json has been updated
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Exception.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Fixer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Report.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Reporting.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Sniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokens.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Reports/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/DocGenerators/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractPatternSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractScopeSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractVariableSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/IncorrectPatternException.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/" which does not appear to be a file nor a folder
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Exception.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/File.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Fixer.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Report.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Reporting.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Sniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokens.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Reports/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Tokenizers/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/DocGenerators/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractPatternSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractScopeSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/AbstractVariableSniff.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/IncorrectPatternException.php" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Generic/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/MySource/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PEAR/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR1/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/PSR2/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Squiz/Sniffs/" which does not appear to be a file nor a folder
Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Zend/Sniffs/" which does not appear to be a file nor a folder
> Drupal\Core\Composer\Composer::preAutoloadDump

Installation failed, reverting ./composer.json to its original content.


  [RuntimeException]
  Could not scan for classes inside "/srv/http/mysite.com/vendor/squizlabs/php_codesniffer/CodeSni
  ffer.php" which does not appear to be a file nor a folder


require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--] [<packages>]...

Haven't had the time to muck around with any other attempts to get things working. Hoping someone else has had this issue and been able to resolve it fairly simply.

@86me
Copy link
Author

86me commented Nov 12, 2017

I think this is a drupal specific issue, so I've opened an issue over at https://www.drupal.org/project/issues/pc/2922810

@86me 86me closed this as completed Nov 12, 2017
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

1 participant