symfony / symfony/maker-bundle

Ansi Color and strange characters

Open
#751 10 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
PHP
Stars
3.4k
Forks
427
Avg merge
2d 22h
Merged PRs (30d)
20

Description

Hi, I have the following issue on Windows with cmd and phpStorm terminal. I try to reinstall wamp and composer but nothing work. On my second computer php cli work perfectly so I think I miss something.

Description
When you wrote make:entity or make:form (maybe more command do the same issue) I got strange character like this :
image

--no-ansi remove a part of strange character but not all :

Examples
With make:entity :
image
You can see colors work with the first sentence but not works after the input
With make:entity and --no-ansi :
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing make:entity and make:form in Windows cmd and the PhpStorm terminal, both with and without --no-ansi, and compare their output. Done means these commands no longer display strange characters while preserving the intended color behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.