ikappas / vscode-phpcs

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

Error from module flooding my notifications #153

Open kingthrillgore opened 5 years ago

kingthrillgore commented 5 years ago

I have started seeing this error from phpcs after updating to 1.38.0

phpcs: Unknown error ocurred. Please verify that /Users/[username]/.composer/vendor/bin/phpcs --report=json -q --encoding=UTF-8 --standard=PSR2 --error-severity=5 --warning-severity=5 --stdin-path=/Users/[path-to-file-excluded] - returns a valid json object.

I am running phpcs 3.3.0 installed from Composer on macOS 10.12.6.

Not sure if this an extension or phpcs issue, any help here would be appreciated.

beto-aveiga commented 4 years ago

In my case, I wasn't able to configure the executable path of PHPCS with a variable. I mean, don't use ${workspaceFolder} or anything like that, just write the full path to PHPCS wherever it is. That made the difference, at least on my machine... and test it several times just to be sure :) Hope that helps!