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

Unable to analyse PHPStan output #1

Open
PieterDC opened this issue Oct 18, 2021 · 0 comments
Open

Unable to analyse PHPStan output #1

PieterDC opened this issue Oct 18, 2021 · 0 comments

Comments

@PieterDC
Copy link

Thanks for sharing your tool. I tried to use it but encountered "Unable to analyse PHPStan output".
I'm using PHP 7.4.3 (cli).
See console logs below for more details.

~$ composer global require wesleydv/drupal-upgrade-audit
Changed current directory to /home/pieter/.composer
Warning from https://packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Using version ^1.0 for wesleydv/drupal-upgrade-audit
./composer.json has been created
Loading composer repositories with package information
Warning from https://packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 30 installs, 0 updates, 0 removals
  - Installing composer/package-versions-deprecated (1.11.99.4): Downloading (100%)         
  - Installing webflo/drupal-finder (1.2.2): Downloading (100%)         
  - Installing symfony/polyfill-php80 (v1.23.1): Downloading (100%)         
  - Installing symfony/process (v4.4.30): Downloading (100%)         
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.4.0): Downloading (100%)         
  - Installing symfony/polyfill-php73 (v1.23.0): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.23.1): Downloading (100%)         
  - Installing symfony/console (v4.4.30): Downloading (100%)         
  - Installing psr/log (1.1.4): Downloading (100%)         
  - Installing phpstan/phpstan (0.12.99): Downloading (100%)         
  - Installing phpstan/phpstan-deprecation-rules (0.12.6): Downloading (100%)         
  - Installing nette/neon (v3.2.2): Downloading (100%)         
  - Installing symfony/polyfill-ctype (v1.23.0): Downloading (100%)         
  - Installing symfony/yaml (v4.4.29): Downloading (100%)         
  - Installing nette/utils (v3.2.5): Downloading (100%)         
  - Installing nette/finder (v2.5.2): Downloading (100%)         
  - Installing mglaman/phpstan-drupal (0.12.15): Downloading (100%)         
  - Installing jean85/pretty-package-versions (1.6.0): Downloading (100%)         
  - Installing composer/xdebug-handler (2.0.2): Downloading (100%)         
  - Installing mglaman/drupal-check (1.1.10): Downloading (100%)         
  - Installing czproject/git-php (v4.0.2): Downloading (100%)         
  - Installing psr/http-message (1.0.1): Loading from cache
  - Installing psr/http-client (1.0.1): Downloading (100%)         
  - Installing ralouphie/getallheaders (3.0.3): Loading from cache
  - Installing psr/http-factory (1.0.1): Loading from cache
  - Installing guzzlehttp/psr7 (2.1.0): Downloading (100%)         
  - Installing guzzlehttp/promises (1.5.0): Downloading (100%)         
  - Installing guzzlehttp/guzzle (7.3.0): Downloading (100%)         
  - Installing wesleydv/drupal-upgrade-audit (1.0.2): Downloading (100%)         
symfony/service-contracts suggests installing symfony/service-implementation ()
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/lock ()
nette/utils suggests installing ext-intl (to use Strings::webalize(), toAscii(), normalize() and compare())
guzzlehttp/psr7 suggests installing laminas/laminas-httphandlerrunner (Emit PSR-7 responses)
guzzlehttp/guzzle suggests installing ext-intl (Required for Internationalized Domain Name (IDN) support)
Writing lock file
Generating autoload files
composer/package-versions-deprecated: Generating version class...
composer/package-versions-deprecated: ...done generating version class
~$ drupal-upgrade-audit git@git.example.com:project/exampleproject.git
drupal-upgrade-audit: command not found
~$ .composer/vendor/bin/drupal-upgrade-audit -vv git@git.example.com:project/exampleproject.git
4/5 Checking compatibility, this might take a whileWriting PHPStan results to /tmp/drupal-upgrade-audit/exampleproject-check.txt

In DrupalCheck.php line 156:
                                    
  [RuntimeException]                
  Unable to analyse PHPStan output  
                                    

Exception trace:
  at /home/pieter/.composer/vendor/wesleydv/drupal-upgrade-audit/src/DrupalCheck.php:156
 wesleydv\DrupalUpgradeAudit\DrupalCheck->call() at /home/pieter/.composer/vendor/wesleydv/drupal-upgrade-audit/src/DrupalCheck.php:35
 wesleydv\DrupalUpgradeAudit\DrupalCheck->runDeprecated() at /home/pieter/.composer/vendor/wesleydv/drupal-upgrade-audit/src/UpgradeAudit.php:83
 wesleydv\DrupalUpgradeAudit\UpgradeAudit->execute() at /home/pieter/.composer/vendor/symfony/console/Command/Command.php:255
 Symfony\Component\Console\Command\Command->run() at /home/pieter/.composer/vendor/symfony/console/Application.php:1009
 Symfony\Component\Console\Application->doRunCommand() at /home/pieter/.composer/vendor/symfony/console/Application.php:273
 Symfony\Component\Console\Application->doRun() at /home/pieter/.composer/vendor/symfony/console/Application.php:149
 Symfony\Component\Console\Application->run() at /home/pieter/.composer/vendor/wesleydv/drupal-upgrade-audit/drupal-upgrade-audit:34

drupal-upgrade-audit [--skip-compatibility] [--] <repo>
~$ php --version
PHP 7.4.3 (cli) (built: Aug 13 2021 05:39:12) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
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