owncloud / search_elastic

Elasticsearch based full text search
https://github.com/owncloud/search_elastic
GNU General Public License v2.0
8 stars 1 forks source link

phpstan failing in CI #165

Closed phil-davis closed 4 years ago

phil-davis commented 4 years ago

https://drone.owncloud.com/owncloud/search_elastic/974/2/5

Package operations: 21 installs, 0 updates, 0 removals
  - Installing ocramius/package-versions (1.4.2): Downloading (100%)
  - Installing symfony/finder (v4.4.7): Downloading (100%)
  - Installing psr/container (1.0.0): Downloading (100%)
  - Installing symfony/service-contracts (v1.1.8): Downloading (100%)
  - Installing symfony/polyfill-php73 (v1.15.0): Downloading (100%)
  - Installing symfony/polyfill-mbstring (v1.15.0): Downloading (100%)
  - Installing symfony/console (v4.4.7): Downloading (100%)
  - Installing psr/log (1.1.3): Downloading (100%)
  - Installing phpstan/phpdoc-parser (0.3.5): Downloading (100%)
  - Installing nikic/php-parser (v4.4.0): Downloading (100%)
  - Installing nette/utils (v3.1.1): Downloading (100%)
  - Installing nette/schema (v1.0.2): Downloading (100%)
  - Installing nette/finder (v2.5.2): Downloading (100%)
  - Installing nette/robot-loader (v3.2.3): Downloading (100%)
  - Installing nette/neon (v3.1.2): Downloading (100%)
  - Installing nette/php-generator (v3.3.4): Downloading (100%)
  - Installing nette/di (v3.0.3): Downloading (100%)
  - Installing nette/bootstrap (v3.0.1): Downloading (100%)
  - Installing jean85/pretty-package-versions (1.2): Downloading (100%)
  - Installing composer/xdebug-handler (1.4.1): Downloading (100%)
  - Installing phpstan/phpstan (0.11.19): Downloading (100%)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
nette/bootstrap suggests installing tracy/tracy (to use Configurator::enableTracy())
Writing lock file
Generating autoload files
ocramius/package-versions:  Generating version class...
ocramius/package-versions: ...done generating version class
php -d zend.enable_gc=0 vendor-bin/phpstan/vendor/bin/phpstan analyse --memory-limit=4G --configuration=./phpstan.neon --no-progress --level=5 appinfo lib
 ------ -------------------------------------------------------------- 
  Line   lib/Application.php                                           
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Command/Create.php                                        
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Command/Rebuild.php                                       
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Command/Reset.php                                         
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Controller/AdminSettingsController.php                    
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Db/StatusMapper.php                                       
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Hooks/Files.php                                           
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Jobs/DeleteJob.php                                        
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Jobs/SearchJobList.php                                    
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Jobs/UpdateContent.php                                    
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Jobs/UpdateMetadata.php                                   
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Search/ElasticSearchProvider.php                          
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/Search/ElasticSearchResult.php                            
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------ -------------------------------------------------------------- 
  Line   lib/SearchElasticService.php                                  
 ------ -------------------------------------------------------------- 
         Internal error: Call to undefined method                      
         PhpParser\Comment::getEndLine()                               
         Run PHPStan with --debug option and post the stack trace to:  
         https://github.com/phpstan/phpstan/issues/new                 
 ------ -------------------------------------------------------------- 

 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
  Error                                                                                                                                                                                                                                            
 -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
phil-davis commented 4 years ago

Started happening only last night. But the latest commit in master is back on 12 March 2020 ???

phil-davis commented 4 years ago

When it was working, there was:

Installing nikic/php-parser (v4.3.0): Downloading (100%)

But now there is a new release:

  - Installing nikic/php-parser (v4.4.0): Downloading (100%)

Maybe related?

phil-davis commented 4 years ago

Probably this is because core has nikic/php-parser (v4.3.0) in lib/composer phpstan loads nikic/php-parser (v4.4.0) in vendor-bin... but then maybe it is actually executing the one in lib/composer Maybe all will be well after core https://github.com/owncloud/core/pull/37237 is merged...

micbar commented 4 years ago

see #167

phil-davis commented 4 years ago

Fixed by getting core nikic/php-parser up to 4.4.0 also, so it matches what vendor-bin/phpstan also loads.

Nightly drone CI passed https://drone.owncloud.com/owncloud/search_elastic/979