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

Panic when running tldr -r #34

Open
dbrgn opened this issue Sep 3, 2020 · 1 comment
Open

Panic when running tldr -r #34

dbrgn opened this issue Sep 3, 2020 · 1 comment

Comments

@dbrgn
Copy link

dbrgn commented Sep 3, 2020

After a fresh install of tldr++ 0.6.1 on Arch (via AUR), when I simply run tldr -r (without updating the cache first), I get a panic.

danilo@x2000:~$ tldr -r
TLDR repository is older than 2 weeks, consider updating it with -u option.
panic: invalid argument to Intn

goroutine 1 [running]:
math/rand.(*Rand).Intn(0xc00007c420, 0x0, 0x557e01f9c1c0)
	math/rand/rand.go:169 +0x9e
math/rand.Intn(...)
	math/rand/rand.go:337
github.com/isacikgoz/tldr/pkg/pages.QueryRandom(0x0, 0x0, 0x0)
	github.com/isacikgoz/tldr/pkg/pages/pages.go:90 +0x42f
main.main()
	github.com/isacikgoz/tldr/main.go:31 +0x5b5
@HazemKaroui
Copy link

Same issue with 1.0.0.alpha
Application doesn't work

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

2 participants