vscode-php-cs-fixer icon indicating copy to clipboard operation
vscode-php-cs-fixer copied to clipboard

How to force the extension to use the locally installed `php-cs-fixer` from the project (`executablePath`) instead of the default one ?

Open Alexandre-Fernandez opened this issue 1 year ago • 1 comments

I installed php-cs-fixer locally and added some extensions. This extension reads the config file, sees the extensions and throws because it can't import them. This happens because it's not using the php-cs-fixer from the project. When I change my VSCode setting and change the executablePath to an absolute path to the project php-cs-fixer vendor executable it works again.

EDIT: The executable path that doesn't work is "php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar".

Alexandre-Fernandez avatar Jun 28 '23 13:06 Alexandre-Fernandez

yes. Cantor read the path of the php-cs-fixer that you install in the project. you must supply the path

junstyle avatar Jun 28 '23 15:06 junstyle