-
Notifications
You must be signed in to change notification settings - Fork 2
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
Nothing happend after running :CocCommand php-cs-fixer.download #1
Comments
Can you please run this to isolate the problem? Are you getting any error messages?
|
No error messages are found. The output is:
|
There doesn't seem to be any problem. coc-php-cs-fixer will use Has it been formatted? |
No, as I said, no changes have been made to the file. I'm not sure why the file path is a temporary one in the output above, shouldn't it be the real path? Or is that the content of the formatted temporary file will be put back to the vim buffer? |
tmp file to perform the formatting and replace the results. You have also reported an issue related to "php-cs-fixer" on Is the file you are trying to format a large file? |
For large files, "coc.nvim" may have a timeout. If you change this setting to a larger value, will there be any change in behavior? "coc.preferences.willSaveHandlerTimeout": 1000, |
I finally found the reason. It's related to the option My project has included a custom php-cs-fixer rules package by composer, I think this option conflicts with it. I set the Thank you for your help. |
OK, I'm glad to hear that the problem has been resolved. :) |
The following command works under my project root:
./vendor/bin/php-cs-fixer fix --ansi
But nothing happend after running
:CocCommand php-cs-fixer.download
in vim. Files that can be formatted by the plain command cannot be formatted by this CocCommand.The text was updated successfully, but these errors were encountered: