[go: nahoru, domu]

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

An error occurs when running the latest version #81

Closed
weiguanyue opened this issue Jun 8, 2023 · 5 comments
Closed

An error occurs when running the latest version #81

weiguanyue opened this issue Jun 8, 2023 · 5 comments

Comments

@weiguanyue
Copy link

Report this error no matter what you're running

Describe your issue

panic: runtime error: index out of range [5] with length 5

goroutine 18 [running]:
github.com/shenwei356/taxonkit/taxonkit/cmd.stringSplitN({0xc00bf9e0a0?, 0xc000173639?}, {0x93cee8, 0x1}, 0x6?, 0xc000290e40?)
/home/shenwei/go/src/github.com/shenwei356/taxonkit/taxonkit/cmd/util.go:45 +0x1cd
github.com/shenwei356/taxonkit/taxonkit/cmd.getNodes({0xc0001bc420, 0x22}, 0x0)
/home/shenwei/go/src/github.com/shenwei356/taxonkit/taxonkit/cmd/util-basic-data.go:162 +0x1f3
github.com/shenwei356/taxonkit/taxonkit/cmd.loadData.func1()
/home/shenwei/go/src/github.com/shenwei356/taxonkit/taxonkit/cmd/util-basic-data.go:57 +0x134
created by github.com/shenwei356/taxonkit/taxonkit/cmd.loadData
/home/shenwei/go/src/github.com/shenwei356/taxonkit/taxonkit/cmd/util-basic-data.go:53 +0x18d

@shenwei356
Copy link
Owner

Thanks for reporting, but could you please provide more details? Like the command and input data.

I can't locate the bug with the current panic information. I guess the taxdump files you download or make are incomplete.

@weiguanyue
Copy link
Author
weiguanyue commented Jun 8, 2023 via email

@shenwei356
Copy link
Owner

The error implies the nodes.dmp file is truncated/incomplete, which usually results from an erroneous or unfinished download.

It's recommended to re-download the taxdump file.
https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz

@weiguanyue
Copy link
Author
weiguanyue commented Jun 8, 2023 via email

@shenwei356
Copy link
Owner

Cheers! Please let me know, opening another issue, if you have any problems.

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