В проекте Symfony я использую терминал bash, интегрированный в VSCode.Когда я пытаюсь создать новую сущность, используя $bin/console make:entity
В bash появляется случайный символ.
Я обновил bash до последней версии, но проблема все еще существует.
Случайные символы, такие как "?[32m
", можно увидеть в выводе ниже:
Вывод терминала Bash-
$ php bin/console make:entity
Class name of the entity to create or update (e.g. DeliciousKangaroo):
> BlogPost
B?[Kl?[Ko?[Kg?[KP?[Ko?[Ks?[Kt?[K
?[32mMark this class as an API Platform resource (expose a CRUD API for it) (yes/no)?[39m [?[33mno?[39m]:
> yes
?[32mcreated?[39m: src/Entity/BlogPost.php
?[32mcreated?[39m: src/Repository/BlogPostRepository.php
Entity generated! Now let's add some fields!
You can always add more fields later manually or by re-running this command.
?[32mNew property name (press ?[39m?[32m<return>?[39m?[32m to stop adding fields)?[39m:
> title
?[32mField type (enter ?[39m?[33m??[39m?[32m to see all types)?[39m [?[33mstring?[39m]:
>
?[32mField length?[39m [?[33m255?[39m]:
>
?[32mCan this field be null in the database (nullable) (yes/no)?[39m [?[33mno?[39m]:
>
?[32mupdated?[39m: src/Entity/BlogPost.php
?[32mAdd another property? Enter the property name (or press ?[39m?[32m<return>?[39m?[32m to stop adding fields)?[39m:
> published
?[32mField type (enter ?[39m?[33m??[39m?[32m to see all types)?[39m [?[33mstring?[39m]:
> datetime
d?[K?7?[30;47matetime?[39;49m?8a?[K?7?[30;47mtetime?[39;49m?8t?[K?7?[30;47metime?[39;49m?8e?[K?7?[30;47mtime?[39;49m?8t?[K?7?[30;47mime?[39;49m?8i?[K?7?[30;47mme?[39;49m?8m?[K?7?[30;47me?[39;49m?8e?[K?7?8
?[32mCan this field be null in the database (nullable) (yes/no)?[39m [?[33mno?[39m]:
>