PHPCSStandards / composer-installer

Composer installer for PHP_CodeSniffer coding standards
https://packagist.org/packages/dealerdirect/phpcodesniffer-composer-installer
MIT License
559 stars 36 forks source link

Installation error #53

Closed BonBonSlick closed 6 years ago

BonBonSlick commented 6 years ago

Problem/Motivation

because i can not install some other packages, or update old one

Expected behaviour

composer update is seccesfull

Actual behaviour

errors

Steps to reproduce

composer update

Proposed changes

i do not know, seems compatibility issue

....
  - Installing dealerdirect/phpcodesniffer-composer-installer (v0.4.4): Loading from cache
Plugin installation failed, rolling back
  - Removing dealerdirect/phpcodesniffer-composer-installer (v0.4.4)

  [Symfony\Component\Process\Exception\ProcessFailedException]                                                                                                                                      
  The command "'/var/www/sitename/vendor/bin/phpcs' '--config-show' 'installed_paths'" failed.                                                                                                        

  Exit Code: 255(Unknown error)                                                                                                                                                                     

  Working directory: /var/www/sitename                                                                                                                                                                

  Output:                                                                                                                                                                                           
  ================                                                                                                                                                                                  

  Error Output:                                                                                                                                                                                     
  ================                                                                                                                                                                                  
  PHP Warning:  require_once(/var/www/sitename/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in /var/www/sitename/vendor/autoload.php on line 5                  
  PHP Stack trace:                                                                                                                                                                                  
  PHP   1. {main}() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:0                                                                                                                    
  PHP   2. spl_autoload_call() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                                        
  PHP   3. PHP_CodeSniffer\Autoload::load() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                           
  PHP   4. include() /var/www/sitename/vendor/squizlabs/php_codesniffer/autoload.php:79                                                                                                               
  PHP Fatal error:  require_once(): Failed opening required '/var/www/sitename/vendor/composer/autoload_real.php' (include_path='.:/usr/share/php') in /var/www/sitename/vendor/autoload.php on line 5  
  PHP Stack trace:                                                                                                                                                                                  
  PHP   1. {main}() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:0                                                                                                                    
  PHP   2. spl_autoload_call() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                                        
  PHP   3. PHP_CodeSniffer\Autoload::load() /var/www/sitename/vendor/squizlabs/php_codesniffer/bin/phpcs:17                                                                                           
  PHP   4. include() /var/www/sitename/vendor/squizlabs/php_codesniffer/autoload.php:79  
jrfnl commented 6 years ago

Loosely related to #48 ? Different error code, but same command triggering an error.

BonBonSlick commented 6 years ago

@jrfnl i do not know, removed sniffer

frenck commented 6 years ago

This seems to be fixed by #51, which is merged in and will be part of the next release.