junstyle / vscode-php-cs-fixer

PHP CS Fixer extension for VS Code
https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer
MIT License
357 stars 45 forks source link

Bug: Unable to use built in php-cs-fixer.phar? #222

Open trymeouteh opened 2 months ago

trymeouteh commented 2 months ago

In the README it says...

this extension has included php-cs-fixer.phar for beginner, maybe performance lower.

However when I install the extension and save some PHP code, it does not format the PHP Code and this error pops up

PHP CS Fixer: executablePath not found. Try setting "php-cs-fixer.executablePath": "${extensionPath}/php-cs-fixer.phar" and try again.

So I then set the extension path setting to ${extensionPath}/php-cs-fixer.phar and when I save some PHP code, I get this error message in the bottom status bar

Could not open input file: /home/john/.vscode-oss/extensions/junstyle.php-cs-fixer-0.3.21-universal/php-cs-fixer.phar