You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you open a project directory and do not load any specific file (i.e. you cd myproject an then vim), when executing the PhpCsFixerFixDirectory() function on the PWD, php-cs-fixer will run correctly on the DIR and fix all of the same files that would be fixed if you ran the command line program against the dir. However, in vim this results in error output that seems to be caused by an assumption that there will be a loaded file to fix.
If I do the same thing as above, except I load any file within that project dir (even a non-php file such as README.md), then the output is error-free and simply reports the number of files modified. It seems to me that running the dir command on a dir should not result in any error output and should ideally not depend on file buffer being available since we are not targeting a file.
The text was updated successfully, but these errors were encountered:
If you open a project directory and do not load any specific file (i.e. you
cd myproject
an thenvim
), when executing thePhpCsFixerFixDirectory()
function on the PWD, php-cs-fixer will run correctly on the DIR and fix all of the same files that would be fixed if you ran the command line program against the dir. However, in vim this results in error output that seems to be caused by an assumption that there will be a loaded file to fix.If I do the same thing as above, except I load any file within that project dir (even a non-php file such as README.md), then the output is error-free and simply reports the number of files modified. It seems to me that running the dir command on a dir should not result in any error output and should ideally not depend on file buffer being available since we are not targeting a file.
The text was updated successfully, but these errors were encountered: