SanderRonde / phpstan-vscode

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

Output errors are garbled. #42

Closed TR0205 closed 7 months ago

TR0205 commented 9 months ago

When I tried to use this extension, an error message "PHPStan: process exited with error, see log for details" appeared in the lower right corner.

image

I tried to check the output to see what kind of error is being output, but the text is garbled and I cannot see it.

I am Japanese, is this affecting me in any way?

Environment OS:Windows10

[check:23] Check started for file:///c%3A/Users/projects/app/Http/Controllers/BaseController.php
[check:23] Spawning PHPStan with the following configuration:  {"binCmd":"c:\\Users\\projects\\application\\vendor\\bin\\phpstan","args":["analyse","-c","c:\\Users\\projects\\application\\phpstan.neon","--error-format=raw","--no-interaction","--memory-limit=1G","--no-progress","c:\\Users\\projects\\application\\app\\Http\\Controllers\\BaseController.php","-a","C:\\Users\\AppData\\Local\\Temp\\tmp-2292-8mxAFY219JoZ\\autoload.php","-c","C:\\Users\\AppData\\Local\\Temp\\tmp-2292-8mxAFY219JoZ\\config.neon"]}
[check:23] PHPStan process exited with error  filteredErr='c:\Users\projects\application\vendor\bin\phpstan' �́A�����R�}���h�܂��͊O���R�}���h�A
����”\�ȃv���O�����܂��̓o�b�` �t�@�C���Ƃ��ĔF������Ă��܂���B  rawErr='c:\Users\projects\application\vendor\bin\phpstan' �́A�����R�}���h�܂��͊O���R�}���h�A
����”\�ȃv���O�����܂��̓o�b�` �t�@�C���Ƃ��ĔF������Ă��܂���B
  data=
[check:23] Check completed for file:///c%3A/Users/projects/app/Http/Controllers/Cdnext/BaseController.php errors= {}
SanderRonde commented 9 months ago

Ah strange, it could be that this is happening because you're using japanese. What happens when you run the command shown in your terminal yourself? Does it also show garbled text, does it show japanese or english? I'm guessing this is some string-encoding issue.

github-actions[bot] commented 7 months ago

Issues go stale after too much time without activity. If inactive for another 7 days this issue will be closed.