laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.32k stars 130 forks source link

Output cleared and missing colors after upgrading to Laravel 9 #164

Closed avivais closed 1 year ago

avivais commented 1 year ago

Tinker Version

2.8.1

Laravel Version

9.52.7

PHP Version

8.1.17

Database Driver & Version

No response

Description

Since we upgraded to Laravel 9, tinker lost colors and seems to be padding all output (Both probably related): Screenshot 2023-05-16 at 16 11 04 Screenshot 2023-05-16 at 16 11 21

Steps To Reproduce

$ php artisan tinker > dump('hi')

driesvints commented 1 year ago

Seems to be working fine for me.

Screenshot 2023-05-16 at 16 26 32
bobthecow commented 1 year ago

Without knowing which version of PsySH you were on before it's hard to say (especially if you're just now updating to Laravel 9) but it may have something to do with your default output pager in PHP.

Try creating a PsySH config file with 'pager' => false. I wouldn't run that way forever, but it should help you track down the issue :)

andya-pixelbeard commented 1 year ago

Also experienced this issue running the same Laravel version and laravel/tinker package version

bobthecow commented 1 year ago

Can you run \Psy\info() and paste the output?