You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Windows] Interacting with the regions cache hangs forever + Impossible to read stdin #809
changed the title [-][Windows] Interacting with the regions cache hangs forever[/-][+][Windows] Interacting with the regions cache hangs forever + Impossible to read stdin[/+]on Oct 7, 2022
We are facing the same issue but found out something slightly odd. First, we use the new golang.org/x/term package rather than x/crypto/ssh/terminal as mentioned in the title of this issue.
I'm not exactly sure about what information may be needed. My OS version:
C:\Users\Administrator>systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name: Microsoft Windows Server 2019 Datacenter
OS Version: 10.0.17763 N/A Build 17763
The Go version:
C:\Users\Administrator>go version
go version go1.19.2 windows/amd64
Still hangs with version 1.29.1 in Git Bash on Windows.
Authentication via SSH keys, so I think terminal interaction is to exclude as source of the issue
Given workaround (passing region as parameter is working)
Activity
[-][Windows] Interacting with the regions cache hangs forever[/-][+][Windows] Interacting with the regions cache hangs forever + Impossible to read stdin[/+]EtienneM commentedon Oct 7, 2022
Cross post with the following issue: golang/go#34612 (comment)
We are facing the same issue but found out something slightly odd. First, we use the new
golang.org/x/termpackage rather thanx/crypto/ssh/terminalas mentioned in the title of this issue.We face the same issue as described in this issue in Git Bash. The code is here: https://github.com/Scalingo/cli/blob/master/term/password.go#L13
But if we run Git Bash from within the terminal tab of VS Code, we no longer face the same issue, everything works as expected.
Does anyone know what is the difference between Git Bash and Git Bash inside VS Code?
I uploaded the smallest example which reproduces the issue here: https://github.com/EtienneM/mwe_read_password/blob/master/main.go
I'm not exactly sure about what information may be needed. My OS version:
The Go version:
The
golang.org/x/termversion is:With this example, in Git Bash in VS Code I can type a password and the output is:
In Git Bash outside of VS Code, I can't type the password and immediately get the error:
Barokai commentedon Nov 4, 2022
Having the same issue on Windows 11, with PowerShell 7.2.7 and cmd.exe in Windows Terminal.
Using Scalingo Client version 1.26.0
EtienneM commentedon Dec 1, 2022
A workaround could be to disable the regions cache on Windows.
yanjost commentedon Jul 27, 2023
Still hangs with version 1.29.1 in Git Bash on Windows.
Authentication via SSH keys, so I think terminal interaction is to exclude as source of the issue
Given workaround (passing region as parameter is working)
yanjost commentedon Jul 27, 2023
IMHO it's related to trying to write the cache file. The code seems to hang when trying to store a file in the user home directory
Maybe related to Windows security, which is quite paranoid with the access rights on user directories
I would sugget using os.UserHomeDir() and os.UserCacheDir() to get the right paths to write to