ikappas / vscode-phpcs

PHP CodeSniffer for Visual Studio Code
MIT License
128 stars 56 forks source link

vscode phpcs: Unknown error ocurred #111

Open Mitsein opened 6 years ago

Mitsein commented 6 years ago

phpcs: Unknown error ocurred. Please verify that /usr/local/opt/php@5.6/bin/phpcs --report=json -q --encoding=UTF-8 --standard=PSR2 --error-severity=5 --warning-severity=5 --stdin-path=/Users/Mitsein/gitWarehouse/bbs/alipaybbs/src/applications/admin/controller/FindController.php - returns a valid json object.

My config "php.validate.executablePath": "/usr/local/opt/php@5.6/bin/php", "phpcs.executablePath":"/usr/local/opt/php@5.6/bin/phpcs",

I get rid of "-stdin -path=". It is normal for me to try the command line to run PHPCS.

Hugues-Antoine commented 6 years ago

I think it's the same problem as https://github.com/ikappas/vscode-phpcs/issues/119