Closed michalblocinski closed 4 months ago
Can you check out the contents of the temporary config.neon file? Does it look OK or is there some stuff missing? Is there any special output if you run the check with the configuration in the log (so with the overridden config.neon)? Try removing --error-format=raw
and --no-progress
lines if nothing useful comes up.
Alternatively you could try disabling the language server (phpstan.enableLanguageServer
setting), that may very well fix it too
Or alternatively
@SanderRonde setting Phpstan: Enable Language Server
option to false in settings fixed the issue.
How to get overridden config.neon? I don't know because when I try this file after vsconfig execute phpstan temporary config.neon is removed
Ahh yeah if it's immediately removed then that's pretty much impossible but thanks for giving it a try. If it's not easy to do that then let's just leave it for now. Glad to hear the issue was fixed by disabling the setting though. I think it causes such issues quite often so I might consider disabling it by default...
In any case, I think this issue is resolved then right? Please let me know if you need further help.
I have an issue using phpstan-doctrine and phpstan-vscode extension. This is my phpstan.neon:
And when I run it this way via cli:
<path>/phpstan analyse <path>/Repository.php -c <path>/phpstan.neon
it will return list of errors. But when I use it as extension it does not report errors. This is output log:I would expect same response to be for command via cli as well via extension Additional information is that if I remove this part from phpstan.neon configuration:
Extension again show errors correctly