elliotchance / gedcom

👪 A Go library and CLI tools for encoding, decoding, traversing, merging, comparing, querying and publishing GEDCOM files.
MIT License
96 stars 21 forks source link

Runtime error on publish #332

Open aselvan opened 1 year ago

aselvan commented 1 year ago

I tried with the latest binary using following args and it always crashes with "index out of range".

gedcom publish -living show -gedcom myfamily.ged -output-dir html ... 2023/08/12 09:49:50 html/john.html 2023/08/12 09:49:50 html/-1.html panic: runtime error: index out of range [0] with length 0

myfamily.ged is exported from myheritage.com

Is there a debug flag to see where it is actually failing?

elliotchance commented 1 year ago

Hm, normally a panic should show the stack trace. Without that it would be near impossible to figure out what it's doing. You could try compiling from source and running the same command:

go build -o bin/gedcom ./cmd/gedcom
bin/gedcom publish -living show -gedcom myfamily.ged -output-dir html