Skip to content

Permission denied with temporary file creation since 0.3.5 #189

Open
@arnofo

Description

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions