-
Notifications
You must be signed in to change notification settings - Fork 106
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
can't format php code #234
Comments
Are your PHP files in a Node project (with its own |
no, it's just a single php file |
Just ran into the same issue, also on a one-off project w/ no I have worked around it by putting a {
"plugins": [
"/usr/local/lib/node_modules/@prettier/plugin-php/src/index.js"
]
} With this, prettier on the CLI and via emacs starts working again. (prettier searchs for configs up from the file being formatted, and – in my case – all of my code is in (BTW Apparently global installs still can't handle short plugin names like |
Thanks, glad to have this sorted out. This is excellent information. We should add this link to the readme if more people stumble upon the same problem. |
little update - this is upstream issue: |
when use format-all-buffer for any php file, it shows
in
*format-all-errors*
I already install the plugin
The text was updated successfully, but these errors were encountered: