-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
bug: does not work on Git Bash #1139
Comments
You can see from the above I was able to select JavaScript and use arrows and space to select only 'trpc' and 'tailwind' from the list. I strongly suggest using the Windows Terminal app. It far exceeds git bash and I am able to easily navigate the menus in the T3 CLI. |
for the purposes of this issue, i dont think that we should consider "ghost inputs" to be classified as working, as the end-user will obviously have no idea that they are working.
windows terminal doesn't have any of the bash builtins though (grep, find, sed, less, etc.), so it is basically unusable. |
The CLI does work, but the terminal is handling it poorly. Powershell, Command Prompt, Ubuntu Terminal, Developer Command Prompt for VS 2022 and Developer Powershell for VS 2022 all worked fine. Also
|
Both |
You can use git bash with the built-in terminal to VSC or Windows Terminal (just bash on Windows at this point) and both seem to handle input correctly with the ct3a cli. I believe the main issue here isn't git bash but instead, the default terminal that git bash uses (MinTTY) which you can change during the installation. |
Seems like no prompt library support this so the best thing we can do is try detecting it and just quitting with a good message - but we wont try working around the prompt libraries and support this |
Provide environment information
$ npx envinfo --system --binaries
npm WARN exec The following package was not found and will be installed: [email protected]
System:
OS: Windows 10 10.0.19044
CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
Memory: 21.04 GB / 31.93 GB
Binaries:
Node: 18.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~.yarn\bin\yarn.CMD
npm: 9.3.0 - C:\Program Files\nodejs\npm.CMD
Describe the bug
Whatever library you are using to generate the prompts does not work on Git Bash for Windows.
Here, no matter what buttons I press, the arrows don't move, and so on.
Reproduction repo
n/a
To reproduce
npm create t3-app@latest foo
Additional information
n/a
The text was updated successfully, but these errors were encountered: