himalaya icon indicating copy to clipboard operation
himalaya copied to clipboard

Configuration wizard hangs

Open shrx opened this issue 1 year ago • 6 comments

~/.local/bin/himalaya.exe --version
himalaya v1.0.0 +smtp +sendmail +maildir +wizard +pgp-commands +imap
build: windows gnu x86_64
git: nix-flake-20241209110415, rev ce0b2dd8d378c834bf22600d4ea508baad43dab0
 ~/.local/bin/himalaya.exe
Cannot find configuration at C:\Users\sharix\AppData\Roaming\himalaya\config.toml.
? Would you like to create one with the wizard? (Y/n) Y
# here it just hangs

Tested in local MobaXterm terminal with zsh.

shrx avatar Dec 10 '24 08:12 shrx

Did you try different combinations, like straight Enter, y then Enter, Y then Enter?

soywod avatar Dec 10 '24 08:12 soywod

Yes, same result in all cases. Additionally, it seems that the argument is not passed to the program:

~/.local/bin/himalaya.exe
Cannot find configuration at C:\Users\sharix\AppData\Roaming\himalaya\config.toml.
? Would you like to create one with the wizard? (Y/n) y
# here I press ctrl+c
y
zsh: y: command not found.

shrx avatar Dec 10 '24 09:12 shrx

Yes, same result in all cases. Additionally, it seems that the argument is not passed to the program

Himalaya relies on a crate called inquire to prompt stuff to terminal, could you try to run one of their example?

https://github.com/mikaelmello/inquire/tree/main/inquire/examples

Something like confirm.rs should be enough:

cargo run --example confirm

soywod avatar Dec 10 '24 09:12 soywod

It may also be an issue with your $TERM environment variable. What is its actual value for you?

soywod avatar Dec 10 '24 09:12 soywod

echo $TERM returns xterm. Will try to test the inquire example now.

shrx avatar Dec 10 '24 19:12 shrx

Definitely looks like an issue with inquire not supporting your terminal. Any chance for you to try with another one? If the example fails, let me know so I can open an issue on their repository.

soywod avatar Dec 12 '24 19:12 soywod