vscode-php-cs-fixer icon indicating copy to clipboard operation
vscode-php-cs-fixer copied to clipboard

Permission denied with temporary file creation since 0.3.5

Open arnofo opened this issue 3 years ago • 3 comments

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/test and the file is created
  • I cannot do touch /tmp/php-cs-fixer/test i get touch: cannot touch '/tmp/php-cs-fixer/test': Permission denied error
  • If i rollback to 0.3.3 everything works fine

arnofo avatar Sep 09 '22 08:09 arnofo

Maybe related to #187 ?

arnofo avatar Sep 09 '22 08:09 arnofo

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

junstyle avatar Sep 09 '22 10:09 junstyle

Just installed and i confirm it works.

Thank you for your time @junstyle.

arnofo avatar Sep 09 '22 10:09 arnofo