Skip to content
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

Improve errors on unsupported environments #20

Merged
merged 2 commits into from Jul 31, 2023
Merged

Conversation

jessarcher
Copy link
Member

This PR improves the error messaging in the following unsupported scenarios:

  • When running Windows outside of WSL without a fallback. This error should only be seen when using Prompts without a Laravel version that includes [10.x] Prompts framework#46772. Currently, a cryptic error occurs when trying to run the stty command.

  • When the terminal height is less than eight lines the prompts will not render correctly. Traditional terminal standards have a minimum height of 24 lines which is still a common default in modern terminal applications. Still, it's possible to have fewer lines, especially in a terminal "drawer" in an IDE. VSCode's terminal is 11 lines by default, but this can be reduced by increasing the font size or shrinking the drawer height.

    image

Fixes #3
Fixes #8

@taylorotwell taylorotwell merged commit 309b301 into main Jul 31, 2023
5 checks passed
@taylorotwell taylorotwell deleted the unsupported-errors branch July 31, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The system cannot find the path specified Search function in small width of terminal
2 participants