SanderRonde / phpstan-vscode

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

"PHPStan: process exited with error, see log for details" - Where is the log file? #46

Closed Nick-Hope closed 11 months ago

Nick-Hope commented 11 months ago

I'm trying to set phpstan up in DDEV on WSL2 (Ubuntu).

When I open a php file I get "PHPStan: process exited with error, see log for details" at the bottom right.

Where is the log file? I can't find it.

My workspace settings.json includes these lines related to phpstan:

"phpstan.binPath": "/home/nick/sites/bv/vendor/bin/phpstan",
"phpstan.configFile": "/home/nick/sites/bv/phpstan.neon",
"phpstan.enabled": true, 
"phpstan.showProgress": true
SanderRonde commented 11 months ago

In VSCode there is a panel at the bottom called "output" (alongside "terminal" and "problems"). In that panel, select "phpstan" in the top-right dropdown. For future reference, that's where you'll find all extension logs.

Will close the issue for now, if you can't make sense of the logs feel free to reply again.

Nick-Hope commented 11 months ago

Thank you very much @SanderRonde. It turns out that my error was because of "Invalid combination of tabs and spaces" in phpstan.neon, which I have now fixed. Happy New Year!

SanderRonde commented 11 months ago

Ah that makes sense. Thanks and you too!