goto icon indicating copy to clipboard operation
goto copied to clipboard

[Bug] Occasional input errors when running `goto` within Windows `cmd.exe`

Open grafviktor opened this issue 1 year ago • 2 comments

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).

grafviktor avatar Feb 11 '24 16:02 grafviktor

Filed a bug in bubbletea library project. This library is used to start ssh process in goto.

grafviktor avatar Feb 11 '24 19:02 grafviktor

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.

grafviktor avatar Mar 06 '24 10:03 grafviktor

No longer reproducible after bubbleteat upgrade. Closing.

grafviktor avatar May 24 '24 16:05 grafviktor