-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find 'php-cs-fixer'. The program may not be installed. #584
Comments
@EvKoh : If you run
You just installed another package: https://atom.io/packages/php-cs-fixer Please follow the instructions that Atom Beautify tells you to follow:
I'd recommend taking a read of some of the other related issues if you need more help: https://github.com/Glavin001/atom-beautify/search?q=php-cs-fixer&type=Issues |
I am closing this issue because the instructions given in the error were obviously not followed. The first line of the error's instructions were:
Please re-read the errors that have been written to help you. |
Hey i'm not so stupid. I did so, then i posted the comment |
@vitkabele , if you were referring to the comment:
That was not aimed at you. I expect you did follow the installation instructions at https://github.com/FriendsOfPHP/PHP-CS-Fixer and you did not run For you (and anyone else for that matter), I had recommended reading the other related Issues as it will help answer your questions and with fixing your PATH environment variable such that Atom Beautify can detect your It depends on if you are running on Windows or Mac/Linux.
Here are some steps:
|
I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance. |
I fixed this. You need uninstall atom-beautify |
Hi Team, |
See https://github.com/FriendsOfPHP/PHP-CS-Fixer for program installation instructions.
Your program is properly installed if running 'which php-cs-fixer' in your Terminal returns an absolute path to the executable. If this does not work then you have not installed the program correctly and so Atom Beautify will not find the program. Atom Beautify requires that the program be found in your PATH environment variable.
Note that this is not an Atom Beautify issue if beautification does not work and the above command also does not work: this is expected behaviour, since you have not properly installed your program. Please properly setup the program and search through existing Atom Beautify issues before creating a new issue. See https://github.com/Glavin001/atom-beautify/search?q=php-cs-fixer&type=Issues for related Issues and https://github.com/Glavin001/atom-beautify/tree/master/docs for documentation. If you are still unable to resolve this issue on your own then please create a new issue and ask for help.
Error: Could not find 'php-cs-fixer'. The program may not be installed.
at PHPCSFixer.module.exports.Beautifier.commandNotFoundError (/home/dev/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:178:14)
at /home/dev/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:274:25
at tryCatcher (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromises (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/async.js:133:10)
at MutationObserver.Async.drainQueues (/usr/share/atom/resources/app.asar/node_modules/babel-core/node_modules/bluebird/js/main/async.js:15:14)
at process._tickCallback (node.js:365:9)
which php-cs-fixer ---> null
The text was updated successfully, but these errors were encountered: