Closed james-astalty closed 7 months ago
@jessarcher @joetannenbaum do we still need to adjust something to make this work?
laravel/framework
will need a Symfony fallback (which is also used for tests).
I think we can use https://symfony.com/doc/current/components/console/helpers/questionhelper.html#accept-multiline-answers. Failing that, we can probably fall back to a single-line prompt.
On a separate note, I'm curious why Symfony uses Ctrl+Z
to submit on Windows and whether we should do the same.
Will jump onto this next week unless @joetannenbaum beats me to it.
@jessarcher sorry I have 2 Github accounts going - does https://github.com/laravel/framework/pull/51055 address this? I also found some other issues with assertions when writing those tests but need that PR to be merged as I want to keep the PRs separate and add more tests to fix the other assertion problems.
https://github.com/laravel/framework/pull/51055 should fix this :+1:
Laravel Prompts Version
0.1.18
Laravel Version
11.3.1
PHP Version
8.2
Operating System & Version
14.2
Terminal Application
zsh
Description
When using a
text
input, you can useexpectsQuestion
when running artisan tests but when using atextarea
, the tests hang.Steps To Reproduce
./vendor/bin/test
I'm not quite sure if this is a Prompts issue or Framework issue but I had a dive into the source and could not work out what could be causing this.