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
- Add Windows-specific runtime dir configuration. And re-enable the `edit` command! Fixes #430 — committed to bobthecow/psysh by bobthecow 7 years ago
- Super aggressive workaround for XDG directory woes We can roll this back if/when things stop breaking :) Fixes #430 — committed to bobthecow/psysh by bobthecow 7 years ago
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-fallbackor something) and setting theXDG_RUNTIME_DIRenvironment variable to that path.Okay. I’ve pushed a really aggressive workaround to the
developbranch, and plan on cutting a stable release ASAP. If you can test that branch before I do, that’d be great!composer updateshould 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”