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

Artisan returning colorize(?) characters #30216

Closed
AlexWinder opened this issue Oct 8, 2019 · 15 comments
Closed

Artisan returning colorize(?) characters #30216

AlexWinder opened this issue Oct 8, 2019 · 15 comments

Comments

@AlexWinder
Copy link

  • 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
@AlexWinder
Copy link
Author

It's also worth mentioning, I am running my environment in Windows 10 and commands are being issued using Git Bash for Windows.

@AlexWinder
Copy link
Author

I have also just updated Laravel to v6.2.0 and I am still seeing the same issue.

@driesvints
Copy link
Member

I guess this is related to #30168 ?

@medeiroz
Copy link
Contributor

medeiroz commented Oct 8, 2019

rollback symfony/console to 4.3.4

--edit--
command: composer require symfony/console:4.3.4
Thanks @driesvints

@driesvints
Copy link
Member

Seems to be a symfony issue: symfony/symfony#33915

@xodewriter
Copy link

rollback symfony/console to 4.3.4

For us newer devs, how can we rollback to this version? Is there a command we can run from the terminal?

@driesvints
Copy link
Member

@jLampStack composer require symfony/console:4.3.4

@bay07
Copy link

bay07 commented Oct 23, 2019

rollback symfony/console to 4.3.4

--edit--
command: composer require symfony/console:4.3.4
Thanks @driesvints

this method works, thank you

@bluecodeland
Copy link

composer require symfony/console:4.3.4

Thanks bro. its worked for me

@sadrahkm
Copy link

rollback symfony/console to 4.3.4

--edit--
command: composer require symfony/console:4.3.4
Thanks @driesvints

its worked for me thank you :))) Win 10

@alexroldan
Copy link

this worked great ... thank you ...

@AlexWinder
Copy link
Author

This now appears to be fixed in 4.3.7 of symfony/console.

@HollyIT
Copy link

HollyIT commented Nov 12, 2019

I can also confirm that 4.3.7 fixes it.

@Hishman
Copy link

Hishman commented Feb 16, 2020

I just upgraded composer (composer upgrade) and the issue disappeared.

@top-master
Copy link

top-master commented Dec 7, 2020

I am still getting this even with symfony/console version 5.2.0 installed (could not downgrade below 5.0), while other Git-bash commands work fine.

Simple reproduce:

$ php artisan --version
Laravel Framework [32m7.30.0[39m

Workaround:

For now my only option is to append --no-ansi to all commands.

Package usage info:

facade/ignition       2.4.1    requires  symfony/console (^5.0)
laravel/framework     v7.30.0  requires  symfony/console (^5.0)
nunomaduro/collision  v4.3.0   requires  symfony/console (^5.0)
psy/psysh             v0.10.5  requires  symfony/console (~5.0|~4.0|~3.0|^2.4.2|~2.3.10)

Full usage tree:

$ composer why --tree symfony/console
symfony/console v5.2.0 Symfony Console Component
├──facade/ignition 2.4.1 (requires symfony/console ^5.0)
│  └──laravel/laravel dev-master (requires (for development) facade/ignition ^2.0)
├──laravel/framework v7.30.0 (requires symfony/console ^5.0)
│  ├──laravel/laravel dev-master (requires laravel/framework ^7.29)
│  ├──laravel/framework v7.30.0 (replaces illuminate/auth self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/auth self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/broadcasting self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/broadcasting self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/bus self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/bus self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/cache self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/cache self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/config self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/config self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/console self.version)
│  │  ├──laravel/framework v7.30.0 (replaces illuminate/console self.version) (circular dependency aborted here)
│  │  └──laravel/tinker v2.5.0 (requires illuminate/console ^6.0|^7.0|^8.0)
│  │     └──laravel/laravel dev-master (requires laravel/tinker ^2.5)
│  ├──laravel/framework v7.30.0 (replaces illuminate/container self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/container self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/contracts self.version)
│  │  ├──fideloper/proxy 4.4.1 (requires illuminate/contracts ^5.0|^6.0|^7.0|^8.0|^9.0)
│  │  │  └──laravel/laravel dev-master (requires fideloper/proxy ^4.4)
│  │  ├──fruitcake/laravel-cors v2.0.3 (requires illuminate/contracts ^6|^7|^8|^9)
│  │  │  └──laravel/laravel dev-master (requires fruitcake/laravel-cors ^2.0)
│  │  ├──laravel/framework v7.30.0 (replaces illuminate/contracts self.version) (circular dependency aborted here)
│  │  └──laravel/tinker v2.5.0 (requires illuminate/contracts ^6.0|^7.0|^8.0)
│  │     └──laravel/laravel dev-master (requires laravel/tinker ^2.5)
│  ├──laravel/framework v7.30.0 (replaces illuminate/cookie self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/cookie self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/database self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/database self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/encryption self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/encryption self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/events self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/events self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/filesystem self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/filesystem self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/hashing self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/hashing self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/http self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/http self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/log self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/log self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/mail self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/mail self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/notifications self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/notifications self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/pagination self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/pagination self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/pipeline self.version)
│  │  ├──facade/flare-client-php 1.3.7 (requires illuminate/pipeline ^5.5|^6.0|^7.0|^8.0)
│  │  │  └──facade/ignition 2.4.1 (requires facade/flare-client-php ^1.0)
│  │  │     └──laravel/laravel dev-master (requires (for development) facade/ignition ^2.0)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/pipeline self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/queue self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/queue self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/redis self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/redis self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/routing self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/routing self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/session self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/session self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/support self.version)
│  │  ├──facade/ignition 2.4.1 (requires illuminate/support ^7.0|^8.0)
│  │  │  └──laravel/laravel dev-master (requires (for development) facade/ignition ^2.0)
│  │  ├──fruitcake/laravel-cors v2.0.3 (requires illuminate/support ^6|^7|^8|^9)
│  │  │  └──laravel/laravel dev-master (requires fruitcake/laravel-cors ^2.0)
│  │  ├──laravel/framework v7.30.0 (replaces illuminate/support self.version) (circular dependency aborted here)
│  │  └──laravel/tinker v2.5.0 (requires illuminate/support ^6.0|^7.0|^8.0)
│  │     └──laravel/laravel dev-master (requires laravel/tinker ^2.5)
│  ├──laravel/framework v7.30.0 (replaces illuminate/testing self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/testing self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/translation self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/translation self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/validation self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/validation self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/view self.version)
│  │  └──laravel/framework v7.30.0 (replaces illuminate/view self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/auth self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/broadcasting self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/bus self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/cache self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/config self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/console self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/container self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/contracts self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/cookie self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/database self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/encryption self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/events self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/filesystem self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/hashing self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/http self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/log self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/mail self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/notifications self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/pagination self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/pipeline self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/queue self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/redis self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/routing self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/session self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/support self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/testing self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/translation self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/validation self.version) (circular dependency aborted here)
│  ├──laravel/framework v7.30.0 (replaces illuminate/view self.version) (circular dependency aborted here)
│  ├──laravel/tinker v2.5.0 (requires illuminate/console ^6.0|^7.0|^8.0)
│  │  └──laravel/laravel dev-master (requires laravel/tinker ^2.5)
│  ├──laravel/tinker v2.5.0 (requires illuminate/contracts ^6.0|^7.0|^8.0) (circular dependency aborted here)
│  └──laravel/tinker v2.5.0 (requires illuminate/support ^6.0|^7.0|^8.0) (circular dependency aborted here)
├──nunomaduro/collision v4.3.0 (requires symfony/console ^5.0)
│  └──laravel/laravel dev-master (requires (for development) nunomaduro/collision ^4.3)
└──psy/psysh v0.10.5 (requires symfony/console ~5.0|~4.0|~3.0|^2.4.2|~2.3.10)
   └──laravel/tinker v2.5.0 (requires psy/psysh ^0.10.4)
      └──laravel/laravel dev-master (requires laravel/tinker ^2.5)

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

No branches or pull requests