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

Issue with .phtml files #1364

Closed
Jakub41 opened this issue Nov 17, 2016 · 5 comments
Closed

Issue with .phtml files #1364

Jakub41 opened this issue Nov 17, 2016 · 5 comments
Assignees
Labels

Comments

@Jakub41
Copy link

Jakub41 commented Nov 17, 2016

Description

Hello,

I'm having this issue with the beautify with phtml files.
I don't have any problem with the other codes all works perfectly but when I run in the phtm file I receiving this error:

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

Error: Could not find 'php-cs-fixer'. The program may not be installed.
at PHPCSFixer.module.exports.Beautifier.commandNotFoundError (/home/jakub/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:204:14)
at /home/jakub/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:304:22
at tryCatcher (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:510:31)
at Promise._settlePromise (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:567:18)
at Promise._settlePromise0 (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:612:10)
at Promise._settlePromises (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:687:18)
at Async._drainQueue (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/home/jakub/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
at process._tickCallback (internal/process/next_tick.js:103:7)

I have the php-cs-fixer installed on my Ubuntu but is not working only with .phtml files.
Thank you for help,
Jakub

@crobinson42
Copy link

Check the settings in the package in Atom and make sure you're pointing to where you installed php-cs-fixer OR try installing php-cs-fixer with brew

@Glavin001
Copy link
Owner

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.

This issue can be reopened once we have the appropriate information to help you.

I also recommend you search through the many other related Issues before creating you own: https://github.com/Glavin001/atom-beautify/search?q=Could+not+find+%27php-cs-fixer%27.+&state=closed&type=Issues&utf8=%E2%9C%93

@Glavin001 Glavin001 self-assigned this Jan 3, 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.

@DrCod3r
Copy link

DrCod3r commented Oct 2, 2017

the same problem for me what i have to do ?

@stevenzeck
Copy link
Contributor

@DrCod3r Please look at #1687, or if you already have php-cs-fixer installed, #1864. The latter was a very recent issue similar to this.

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

6 participants