framework: Artisan returning colorize(?) characters
- Laravel Version: 6.1.0
- PHP Version: 7.3.7
- Database Driver & Version: MariaDB 10.3.16
Description:
Since updating to the 6.1.0 of Laravel artisan commands now appear to return colorize/encoded characters, for example:
$ php artisan serve
?[32mLaravel development server started:?[39m <http://127.0.0.1:8000>
$ php artisan migrate:fresh --seed
?[32mDropped all tables successfully.?[39m
?[32mMigration table created successfully.?[39m
?[33mMigrating:?[39m 2014_10_12_100000_create_password_resets_table
?[32mMigrated:?[39m 2014_10_12_100000_create_password_resets_table (0.08 seconds)
?[33mMigrating:?[39m 2019_04_11_133652_create_companies_table
?[32mMigrated:?[39m 2019_04_11_133652_create_companies_table (0.03 seconds)
?[33mMigrating:?[39m 2019_04_11_133653_create_users_table
?[32mMigrated:?[39m 2019_04_11_133653_create_users_table (0.08 seconds)
?[33mMigrating:?[39m 2019_05_10_150757_create_jobs_table
?[32mMigrated:?[39m 2019_05_10_150757_create_jobs_table (0.07 seconds)
?[33mMigrating:?[39m 2019_05_10_151007_create_failed_jobs_table
?[32mMigrated:?[39m 2019_05_10_151007_create_failed_jobs_table (0.02 seconds)
...
Previously the following would occur:
$ php artisan serve
Laravel development server started: <http://127.0.0.1:8000>
…where “Laravel development server started:” is in green.
Steps To Reproduce:
Issue an artisan command, for example:
php artisan serve
php artisan migrate
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (4 by maintainers)
@jLampStack
composer require symfony/console:4.3.4rollback symfony/console to 4.3.4
–edit– command:
composer require symfony/console:4.3.4Thanks @driesvintsthis method works, thank you
Seems to be a symfony issue: https://github.com/symfony/symfony/issues/33915
I am still getting this even with
symfony/consoleversion5.2.0installed (could not downgrade below5.0), while other Git-bash commands work fine.Simple reproduce:
Workaround:
For now my only option is to append
--no-ansito all commands.Package usage info:
Full usage tree:
For us newer devs, how can we rollback to this version? Is there a command we can run from the terminal?