Open stepheneb opened 5 years ago
When I try and run PHP CS Fixer 2.15.1 in Atom I get blue error stating "Could not open input file: php-cs-fixer"
Instructions for using brew installed php-cs-fixer appear to be out of date.
brew now just installs latest version of php-cs-fixer.phar as php-cs-fixer so there is no separate phar file.
php-cs-fixer.phar
See: https://github.com/Homebrew/homebrew-core/blob/master/Formula/php-cs-fixer.rb
My environment:
MacOS 10.14.5 Atom 1.38.2 Php: 7.3.6 php-cs-fixer: 2.15.1 atom-php-cs-fixer: 4.1.1
php and php-cs-fixer are on path:
$ which php /usr/local/bin/php $ which php-cs-fixer /usr/local/bin/php-cs-fixer
PHP CS Fixer 2.15.1 is installed and runs:
$ php-cs-fixer --version PHP CS Fixer 2.15.1 Europe Round by Fabien Potencier and Dariusz Ruminski (2006451)
I worked around this by configuring the "PHP-CS-Fixer executable path" setting to be /usr/local/bin/php-cs-fixer. (ie, the output of which php-cs-fixer)
/usr/local/bin/php-cs-fixer
which php-cs-fixer
When I try and run PHP CS Fixer 2.15.1 in Atom I get blue error stating "Could not open input file: php-cs-fixer"
Instructions for using brew installed php-cs-fixer appear to be out of date.
brew now just installs latest version of
php-cs-fixer.phar
as php-cs-fixer so there is no separate phar file.See: https://github.com/Homebrew/homebrew-core/blob/master/Formula/php-cs-fixer.rb
My environment:
MacOS 10.14.5 Atom 1.38.2 Php: 7.3.6 php-cs-fixer: 2.15.1 atom-php-cs-fixer: 4.1.1
php and php-cs-fixer are on path:
PHP CS Fixer 2.15.1 is installed and runs: