vscode-phpfmt icon indicating copy to clipboard operation
vscode-phpfmt copied to clipboard

phpfrmt only formats a file once

Open TheDutchCoder opened this issue 7 years ago • 0 comments

I have this odd issue, where the formatter will run correctly the first time, but any subsequent format will simply do nothing.

Here's the error output:

8/15/2018, 9:39:41 AM
---------------------
php "/Users/[removed]/.vscode/extensions/kokororin.vscode-phpfmt-1.0.30/node_modules/phpfmt/fmt.phar" --psr2 --indent_with_space=4 /var/folders/27/lgqtwq3n3057zjd_v1v2dkgh0000gp/T/temp-xtudhiqtpq.php

8/15/2018, 9:40:02 AM
---------------------
Command failed: php -l /var/folders/27/lgqtwq3n3057zjd_v1v2dkgh0000gp/T/temp-gephuwg.php

Is there anything I can provide to help find the bug? (Mac OS 10.13.6, VScode 1.26.0)

Edit :suddenly it seems to have started working. I'm not sure why it so often fails, but I have a feeling it has something to do with read/writes on the tmp file.

TheDutchCoder avatar Aug 15 '18 13:08 TheDutchCoder