vscode-php-cs-fixer
vscode-php-cs-fixer copied to clipboard
Permission denied with temporary file creation since 0.3.5
I use this extension in a remote ssh environment.
I encounter a bug when fixing on save since the 0.3.5 version.
[2022-09-09 10:35:48.861] [exthost] [error] [junstyle.php-cs-fixer] provider FAILED
[2022-09-09 10:35:48.874] [exthost] [error] Error: EACCES: permission denied, mkdir '/tmp/php-cs-fixer/tmp0.5720026709632406'
(... truncated for readability but i can provide the stacktrace if needed)
More context :
- I am not logged in as
root - I can do
touch /tmp/testand the file is created - I cannot do
touch /tmp/php-cs-fixer/testi gettouch: cannot touch '/tmp/php-cs-fixer/test': Permission deniederror - If i rollback to
0.3.3everything works fine
Maybe related to #187 ?
new version published,
a new option for setting a tmp dir; #189 #187
if no tmp dir setted, will try system tmp dir and current user home dir
Just installed and i confirm it works.
Thank you for your time @junstyle.