Skip to content
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

PHP-CS-Fixer Error: Error: Could not find 'php-cs-fixer'. The program may not be installed. #1324

Closed
3 of 4 tasks
ghost opened this issue Nov 3, 2016 · 6 comments
Closed
3 of 4 tasks
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Nov 3, 2016

Description

The results of beautification are not what I expect.

Expected Results

The beautified code should have looked like:

<INSERT CODE HERE>

Steps to Reproduce

  1. Add code to Atom editor
  2. Run command Atom Beautify: Beautify Editor
  3. This beautified code does not look right!

Debug

Here is a link to the debug.md Gist: https://gist.github.com/fe8188e9aecd79601afea771e2803ede

Checklist

  • I have tried uninstalling and reinstalling Atom Beautify to ensure it installed properly
  • I have reloaded (or restarted) Atom to ensure it is not a caching issue
  • Searched for existing Atom Beautify Issues at https://github.com/Glavin001/atom-beautify/issues
    so I know this is not a duplicate issue
  • Generated debugging information and added link for debug.md Gist to this issue
@ghost ghost closed this as completed Nov 3, 2016
@ghost ghost reopened this Nov 3, 2016
@ghost
Copy link
Author

ghost commented Nov 3, 2016

Since I came from other editors, I'm kind of new with Atom. Can anyone help me with this please?

@Glavin001 Glavin001 changed the title PHP-CS-Fixer Error PHP-CS-Fixer Error: Error: Could not find 'php-cs-fixer'. The program may not be installed. Jan 2, 2017
@Glavin001
Copy link
Owner

Atom-Beautify uses PHP-CS-Fixer for beautifying PHP. There are a number of related issues: https://github.com/Glavin001/atom-beautify/search?q=Error%3A+Could+not+find+%27php-cs-fixer%27.+The+program+may+not+be+installed.&type=Issues&utf8=%E2%9C%93
I think a good one may be: #394 (comment)

See https://github.com/FriendsOfPHP/PHP-CS-Fixer for their installation instructions.

@Glavin001 Glavin001 self-assigned this Jan 2, 2017
@Glavin001
Copy link
Owner

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.

@phamthanhnghia
Copy link

I fixed this. You need uninstall atom-beautify

@cangelozzi
Copy link

Still having issue...uninstall atom-beautify...but no luck. Not able to beautify php.

@stevenzeck
Copy link
Contributor

If you've installed php-cs-fixer, make sure you set the path to it in atom beautify. Open Atom Beautify's settings and expand "Executables". Under that, expand "PHP-CS-Fixer" and set the path to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants