Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmt.Scanf does not work with Air #387

Open
jpolo-bda opened this issue Jan 31, 2023 · 2 comments
Open

fmt.Scanf does not work with Air #387

jpolo-bda opened this issue Jan 31, 2023 · 2 comments

Comments

@jpolo-bda
Copy link

Hello everyone.
fmt.scanf does not work properly with air. When pressing enter after the data it only enters new line but does not do the input. I tried it with integers and strings. When interrupting air and running it with go run it does work.
OS: MX Linux 21.3
Go version: 1.19.2
Thanks and Regards.

var n int
fmt.Printf("n: ")
fmt.Scanf("%d", &n)
fmt.Println("n:", n)
@makiuchi-d
Copy link
Contributor

Most auto-reload tools do not support bypassing stdin, but arelo does.

go install github.com/makiuchi-d/arelo@latest
arelo -- go run main.go

@xiantang
Copy link
Collaborator

Most auto-reload tools do not support bypassing stdin, but arelo does.

go install github.com/makiuchi-d/arelo@latest
arelo -- go run main.go

well done, will take advantage from arelo!

This was referenced Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants