You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like a lot of other people, I'm running in to the error where the plugin cannot find the path to phpcs.
The instructions say that you can do a Project-wide Installation by using composer to require -dev squizlabs/php_codesniffer
The settings for phpcs.executablePath say that you can leave it blank and it will find the file from your composer.json.
If omitted, the plugin will try to locate the path parsing your composer configuration or the global path.
But the plugin cannot seem to find that installation and to use it for linting.
phpcs: Unable to locate phpcs. Command failed: "c:\Users\helga\Local Sites\testsite\app\public\wp-content\plugins\charitable-recurring" --version '"c:\Users\helga\Local Sites\testsite\app\public\wp-content\plugins\charitable-recurring"' is not recognized as an internal or external command, operable program or batch file.
Where "charitable-recurring" is the project's root folder.
So I tried inputting the relative path as vendor\squizlabs\php_codesniffer\bin\phpcs.bat
and that at least changes the error. But "An error occurred" doesn't tell me anything.
PHP-CS-Fixer: An error occurred.
Has anyone gotten this work with a local-project installed version?
The text was updated successfully, but these errors were encountered:
Like a lot of other people, I'm running in to the error where the plugin cannot find the path to
phpcs
.The instructions say that you can do a Project-wide Installation by using composer to require
-dev squizlabs/php_codesniffer
The settings for
phpcs.executablePath
say that you can leave it blank and it will find the file from yourcomposer.json
.But the plugin cannot seem to find that installation and to use it for linting.
Where "charitable-recurring" is the project's root folder.
So I tried inputting the relative path as
vendor\squizlabs\php_codesniffer\bin\phpcs.bat
and that at least changes the error. But "An error occurred" doesn't tell me anything.
Has anyone gotten this work with a local-project installed version?
The text was updated successfully, but these errors were encountered: