vscode-phpcs icon indicating copy to clipboard operation
vscode-phpcs copied to clipboard

Error from module flooding my notifications

Open kingthrillgore opened this issue 6 years ago • 1 comments

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.

kingthrillgore avatar Sep 06 '19 15:09 kingthrillgore

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!

beto-aveiga avatar Jan 14 '20 17:01 beto-aveiga