spacemeshos / smcli

Spacemesh command-line tool
https://spacemesh.io/
MIT License
8 stars 9 forks source link

"Error: The handle is invalid." on Windows #51

Closed lrettig closed 11 months ago

lrettig commented 11 months ago

Just documenting this here in case it comes up for anyone else because it confused the heck out of me. Trying to run smcli on Windows just now, I kept getting the following error (from wallet create and wallet read):

$ ./smcli.exe wallet create
Enter a BIP-39-compatible mnemonic (or leave blank to generate a new one):
Error: The handle is invalid.

Turns out this happened because I'm running it inside of Git Bash on Windows. It works fine in Powershell. See https://github.com/golang/go/issues/11914.