di-sukharev / opencommit

Generate conventional git commit messages with AI in 1 second 🤯🔫
https://www.npmjs.com/package/opencommit
MIT License
5.98k stars 318 forks source link

[Bug]: `uv_tty_init returned EBADF` on Windows #232

Open selfagency opened 1 year ago

selfagency commented 1 year ago

Opencommit Version

2.4.2

Node Version

18.17.0

NPM Version

9.6.7

What OS are you seeing the problem on?

Windows

What happened?

Your cli seems to suffer from the same malady Nutlope/aicommits once did pertaining to Windows file descriptors:

◇  📝 Commit message generated
25h│
└  ✖ TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)

They resolved it like so: https://github.com/Nutlope/aicommits/pull/176

Expected Behavior

To not throw an error

Current Behavior

It throws uv_tty_init returned EBADF

Possible Solution

https://github.com/Nutlope/aicommits/pull/176

Steps to Reproduce

Run oco in a repo on a Windows machine

Relevant log output

◇  📝 Commit message generated
│
└  ✖ TTY initialization failed: uv_tty_init returned EBADF (bad file descriptor)
di-sukharev commented 1 year ago

any Windows volunteers willing to reproduce locally and make a fix PR?

github-actions[bot] commented 12 months ago

Stale issue message