-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Non-interactive mode fails in Windows environment #35123
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
Comments
I looked into this. I think it's something very specifically weird with how mintty is configured for git bash. I'm slightly hazy on the details but I keep coming across similar issues with python in the past to do with how mintty integrates with the window console. It appears to pipe (or not) STDIN in some cases - I think that is what is happening, causing My clue to this was In the 'working' In the broken My guess is that php is doing something smart when called directly that /usr/bin/env is preventing somehow. I tested using cygwin bash in a windows console and both ./bin/console and php ./bin/console worked as expected. I don't think this is a specific error exactly within symfony/console, but perhaps it is worth coding an explicit check for this in Application:configureIO somehow... I'm not sure how yet. -- edit: grammar |
I just believe that everything worked at least around Sept., Oct. 2019 (maybe old version?) Tested: Symfony 4.4.4 everything OK |
Today when I create a new 5.0.5 project, it magically worked. |
OK, closing then. Might have been fixed by @ostrolucky in #33897 |
Yes, this seems to have fixed the issue. Thanks, all! |
Symfony version(s) affected: 5.0
Description
Symfony commands (such as in maker-bundle) which require user interaction throw exceptions when using Windows 10 and Git for Windows.
How to reproduce
I created a new Symfony project using
composer create-project symfony/website-skeleton
which installed:- Installing symfony/maker-bundle (v1.14.3)
No other configuration or code was added to the project. When I run
bin/console make:entity
without any arguments, I usually am put into interactive mode where it asks for then entity name and field definitions. Now, I receive an error:https://github.com/symfony/maker-bundle/blob/443411aa3c75d87efb07a67f170295ff0961e257/src/Maker/MakeEntity.php#L133-L136
https://github.com/symfony/maker-bundle/blob/443411aa3c75d87efb07a67f170295ff0961e257/src/Generator.php#L127
Environment:
Additional context
symfony/maker-bundle#506
The text was updated successfully, but these errors were encountered: