psysh: ErrorException occurred only in v0.8.12

I always use psysh with laravel/tinker. Today after I updated psysh from 0.8.11 to 0.8.12, I got the error below when I run php artisan tinker.

rmdir(C:\Users\<User>\AppData\Local\Temp\php-xdg-runtime-dir-fallback-): Directory not empty

The error disappears after I downgraded it back to v0.8.11. If I manually delete the php-xdg-runtime-dir-fallback-, I was able to run php artisan tinker once. Then I run php artisan tinker again, the error comes back.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks for reporting this. It looks like a Windows incompatibility in an underlying library. I’ll work on a fix, but in the meantime, you should be able to work around it by creating a directory (I’d use C:\Users\<User>\AppData\Local\Temp\psysh-runtime-dir-fallback or something) and setting the XDG_RUNTIME_DIR environment variable to that path.

Okay. I’ve pushed a really aggressive workaround to the develop branch, and plan on cutting a stable release ASAP. If you can test that branch before I do, that’d be great!

composer update should fix it. This was fixed in v0.8.13.

am having the same problem , am using laravel55 every thing was working fine , even tinker , when i used php artisan make:transformer the Error come to life !!! “rmdir(C:\Users<user>\AppData\Local\Temp\php-xdg-runtime-dir-fallback-): Directory not empty”