-
-
Notifications
You must be signed in to change notification settings - Fork 556
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
[generate:command] during the process of adding new services, impossible to exit using Enter. #3714
Comments
Fixed with PR at console-core hechoendrupal/drupal-console-core#292 |
@jmolivas The problem still exists I have just merged the upstreams for core and DC. As you see I enter the first service and then can't exit using "Enter". I can't reopen the ticket, feel free to do it. Type the service name or use keyup or keydown. Enter your service [class_loader]: Enter your service [kernel]: |
@LOBsTerr Did you sync and symlink |
@jmolivas I have updated the code from references again. Still the same. Yes, of course I have everything symlinked. |
@LOBsTerr My bad. I was hiting enter without adding the first one and I was able to exit the loop. Got it fixed now. Sending a PR in a few minutes. |
@jmolivas Super! Thanks. I tried to explain this, but probably used the wrong words. The next time I will add a screenshot directly! |
@jmolivas I have checked. It works. Thanks If you want I can handle in other places |
@LOBsTerr that will be great. We only need to fix when this combination happens
When We need to replace |
@LOBsTerr I found it at the following classes:
|
@jmolivas Thanks for information, I will fix it |
@KoalaCoder I will take a look |
Issue title
Adding new services causing infinite loop, until the moment we add all available services.
Other command, which are using ServicesTrait, EventsTrait and other can be also affected
Problem/Motivation
Impossible to add some options using interaction
How to reproduce
We add the first service, then we push "Enter" button ... and again and again.
Details to include:
Solution
The problem is when we push "Enter" button on the first question we receive as result 0 and we exit the while loop, but if we enter the name of the first service and we push "Enter" button we receive 1.
Because of that we can't exit the loop.
The text was updated successfully, but these errors were encountered: