SanderRonde / phpstan-vscode

PHPStan plugin for VSCode
https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode
MIT License
37 stars 7 forks source link

PHPStan: process exited with error, see log for details #40

Closed JorgeSivil closed 10 months ago

JorgeSivil commented 10 months ago

Hello! I'm having this error for all files I open

I work with a remote environment via SSH


[check:46] Check started for file:///home/jorgesivil/repos/classservice/test/Util/SymmetricJwtTest.php
[status-bar] Showing status bar
[check:46] Spawning PHPStan with the following configuration:  {"binCmd":"/home/jorgesivil/repos/classservice/vendor/bin/phpstan","args":["analyse","-c","/home/jorgesivil/repos/classservice/phpstan.neon","--error-format=raw","--no-interaction","--memory-limit=1G","--no-progress","/home/jorgesivil/repos/classservice/test/Util/SymmetricJwtTest.php","-a","/tmp/tmp-1998502-I7YAqQwbYcze/autoload.php","-c","/tmp/tmp-1998502-I7YAqQwbYcze/config.neon"]}
[file-manager] Not checking file "file:///home/jorgesivil/repos/classservice/test/Util/SymmetricJwtTest.php", file check is pending (checkId=46)
[check:46] PHPStan process exited with error  filteredErr=! [NOTE] The Xdebug PHP extension is active, but "--xdebug" is not used. This
!        may slow down performance and the process will not halt at
!        breakpoints.  rawErr=
 ! [NOTE] The Xdebug PHP extension is active, but "--xdebug" is not used. This  
 !        may slow down performance and the process will not halt at            
 !        breakpoints.                                                          

  data=
[status-bar] Hiding status bar, last operation result = Error
[check:46] Check completed for file:///home/jorgesivil/repos/classservice/test/Util/SymmetricJwtTest.php errors= {}
[file-manager] Not checking file "file:///home/jorgesivil/repos/classservice/test/Util/SymmetricJwtTest.php", file has already been checked (checkId=46)```
SanderRonde commented 10 months ago

Should be fixable with the same fix as this issue: https://github.com/SanderRonde/phpstan-vscode/issues/17. Can you check if that works?

JorgeSivil commented 10 months ago

Thank you, I just figured it out the same way I guess, with the regex : .*[xdebug].*