goto
goto copied to clipboard
[Bug] Occasional input errors when running `goto` within Windows `cmd.exe`
Problem
On a very rare ocassion if start goto in cmd.exe and connect to a remote machine it may omit first keyboard symbol when typing ssh password, so you will need to type your password again. To reproduce:
- Run cmd.exe;
- Start goto and make sure you have at least 2 hosts;
- Press up and down buttons;
- Press Enter to connect to a selected host.
When you type your password (for a ssh key or for the host iteself) first time it won't be accepted.
Workaround
Run gg using powershell until this is resolved:
- Right mouse on gg.exe, select "Send to Desktop" in order to create a shortcut;
- Open the shortcut properties and update the target field:
powershell.exe Start-Process 'C:\your_path_to\gg.exe'(make sure you use single quotes).
Filed a bug in bubbletea library project. This library is used to start ssh process in goto.
I suspect that windows antivirus could be a contributing factor into this problem. Unfortunately this issue is very sporadic, which makes it hard to allocate. Clearly this has something to do with the parallel goroutine which bubbletea library runs to to poll the input stream.
No longer reproducible after bubbleteat upgrade. Closing.