Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied with temporary file creation since 0.3.5 #189

Open
arnofo opened this issue Sep 9, 2022 · 3 comments
Open

Permission denied with temporary file creation since 0.3.5 #189

arnofo opened this issue Sep 9, 2022 · 3 comments

Comments

@arnofo
Copy link

arnofo commented Sep 9, 2022

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
Copy link
Author

arnofo commented Sep 9, 2022

Maybe related to #187 ?

junstyle pushed a commit that referenced this issue Sep 9, 2022
3. a new setting for setting a tmp dir;  #189 #187

if no tmp dir setted, will try `system tmp dir` and `current user home dir`
@junstyle
Copy link
Owner

junstyle commented Sep 9, 2022

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

@arnofo
Copy link
Author

arnofo commented Sep 9, 2022

Just installed and i confirm it works.

Thank you for your time @junstyle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants