Atom-beautify: Could not find 'php-cs-fixer'. The program may not be installed.

Created on 4 Apr 2018  路  20Comments  路  Source: Glavin001/atom-beautify

https://resmim.net/f/uJs1cO.png

I have a problem with the above link in my Atom.io editor. How can I solve this problem? I installed the plug-in, but the problem was not resolved.

stale waiting-for-user-information

Most helpful comment

What did you write in the php-cs-fixer section? Could you send a screenshot? I am using windows. how to install.

Not sure if you still need help, but at least this might help someone else using windows with xampp.

Once you are here: https://resmim.net/f/2WxAtW.png
On php write this: [this is your install location]\xampp\php\php.exe
and for the PHP-CS-Fixer, first go here: https://github.com/FriendsOfPHP/PHP-CS-Fixer/#installation
download php-cs-fixer.phar, place that file as it is in the same location that php.exe is (the location you just wrote above) and then you can complete the PHP-CS-Fixer tab with it.
For example: [this is your install location]\xampp\php\php-cs-fixer-v2.phar

This is how i have it: https://i.imgur.com/ftTAahZ.png

All 20 comments

What OS are you on and how did you install PHP-CS-Fixer? Do you also have PHP installed?

I am using windows 10. From the upload location in the program. xampp is installed.

You'll need to specify the path to PHP and PHP-CS-Fixer binary/script. Go to Packages -> Atom Beautify -> Settings and expand Executables. Scroll down until you see PHP and right under that PHP-CS-Fixer. Expand both of those and put the path to each there.

No you scrolled down a bit too far.

screen shot 2018-04-04 at 10 35 08 am
screen shot 2018-04-04 at 10 35 26 am

https://resmim.net/f/2WxAtW.png Now I've found the right place. I filled it like this. The problem is solved, but automatic correction is not working.

https://resmim.net/f/WdzH7u.png Like this one. What is keyboard shortcut?

Run the debug command and copy/paste its contents to a GitHub gist and link it here to this issue.

Packages -> Atom Beautify -> Debug -> Hit OK button a couple of times. It will generate a new editor tab to copy/paste.

OK. The file was created. I have my own custom codes in the file. https://resmim.net/f/FOv7Zz.png

@musayazlik I need the whole file. Please copy and paste those contents into a GitHub gist (https://gist.github.com/) and link that gist to this issue.

Under Executables -> PHP-CS-Fixer you have the script going to C:\\xampp\\php\\php.exe. That script is only for PHP, you need to put the path to PHP-CS-Fixer there.

        "php": {
            "path": "C:\\xampp\\php\\php.exe"   // this is good
        },
        "php-cs-fixer": {
            "path": "C:\\xampp\\php\\php.exe"   //this is incorrect
        },

Please follow the issue template provided. More specifically, adding a link to the required debug.md Gist which includes debugging information that answers our most commonly asked questions.
Thank you.

@musayazlik : In the future, please copy text as text (not images) into this GitHub issue or a Gist, as this allows us to search through the text and copy & paste when necessary. Also images can be uploaded to GitHub directly as well instead of using https://resmim.net/ : https://help.github.com/articles/file-attachments-on-issues-and-pull-requests/

@Glavin001 I did not know how to upload pictures. I learned now. Thank you.

screenshot_1

You're talking about the location where the plugin is loaded.

@musayazlik you need to install PHP-CS-Fixer itself, not the Atom extension. https://github.com/FriendsOfPHP/PHP-CS-Fixer/#installation

What did you write in the php-cs-fixer section? Could you send a screenshot? I am using windows. how to install.

This issue has been automatically marked as stale because it has not had recent activity. If this is still an issue, please add a comment. It will be closed if no further activity occurs. Thank you for your contributions.

What did you write in the php-cs-fixer section? Could you send a screenshot? I am using windows. how to install.

Not sure if you still need help, but at least this might help someone else using windows with xampp.

Once you are here: https://resmim.net/f/2WxAtW.png
On php write this: [this is your install location]\xampp\php\php.exe
and for the PHP-CS-Fixer, first go here: https://github.com/FriendsOfPHP/PHP-CS-Fixer/#installation
download php-cs-fixer.phar, place that file as it is in the same location that php.exe is (the location you just wrote above) and then you can complete the PHP-CS-Fixer tab with it.
For example: [this is your install location]\xampp\php\php-cs-fixer-v2.phar

This is how i have it: https://i.imgur.com/ftTAahZ.png

驴Qu茅 escribiste en la secci贸n php-cs-fixer? 驴Podr铆as enviar una captura de pantalla? Estoy usando ventanas. c贸mo instalar.

No estoy seguro de si a煤n necesita ayuda, pero al menos esto podr铆a ayudar a otra persona a usar Windows con xampp.

Una vez que est茅 aqu铆: https://resmim.net/f/2WxAtW.png
En php escriba esto: [esta es su ubicaci贸n de instalaci贸n] \ xampp \ php \ php.exe
y para PHP-CS-Fixer, primero vaya aqu铆 : https://github.com/FriendsOfPHP/PHP-CS-Fixer/#installation
descarga php-cs-fixer.phar, coloque ese archivo como est谩 en la misma ubicaci贸n que php.exe (la ubicaci贸n que acaba de escribir arriba) ) y luego puede completar la pesta帽a PHP-CS-Fixer con 茅l.
Por ejemplo: [esta es su ubicaci贸n de instalaci贸n] \ xampp \ php \ php-cs-fixer-v2.phar

As铆 es como lo tengo: https://i.imgur.com/ftTAahZ.png

@andres-conforti I did what you mentioned, the problem that said php cs fixer was not installed was corrected, however the code was not indented.

This is the debug information of atom-beautify:

"executables": {
"php": {
"path": "C:\xampp\php\php.exe"
},
"php-cs-fixer": {
"path": "C:\xampp\php\php-cs-fixer-v2.phar"
},

Do you know another way to make atom-beautify work?

Was this page helpful?
0 / 5 - 0 ratings