Giter Site home page Giter Site logo

gedcom2hugo's People

Contributors

illusion2023 avatar tektsu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gedcom2hugo's Issues

Hugo Template

Hi @tektsu

after some minor fixes I got your code running, even on a very nasty FTM gedcom file -seems there was a CLI update in the meantime with breaking changes.
I still need to invest some time to adjust it to my requirements but it is a perfect starter!
Therefore and first of: Thank you very much for your effort and making that code publicly available!

I am now wondering, which hugo template you were / are using to render the generated files?

Thanks in advance and best wishes to Phoenix
Markus

panic: runtime error: slice bounds out of range

Hi!

I gave this a spin tonight, but hit this panic. I used my own gedcom file, but was able to recreate the panic with the GEDCOM 5.5 Torture Test Files:

$ gedcom2hugo --gedcom testdata/AdamIsrael.ged
panic: runtime error: slice bounds out of range

goroutine 1 [running]:
github.com/tektsu/gedcom.makeIndividualParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc420096238, 0x0)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:745 +0x2c7e
github.com/tektsu/gedcom.(*Decoder).popParser(0xc4200d6040, 0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc42000a4a0, 0x0)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:107 +0xae
github.com/tektsu/gedcom.makeCitationParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x40f879, 0xc42000a4c0)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:368 +0xba3
github.com/tektsu/gedcom.(*Decoder).popParser(0xc4200d6040, 0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:107 +0xae
github.com/tektsu/gedcom.makeDataParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc42004f780, 0x4)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:404 +0x453
github.com/tektsu/gedcom.(*Decoder).popParser(0xc4200d6040, 0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc42004f780, 0x43fe8f)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:107 +0xae
github.com/tektsu/gedcom.makeTextParser.func1(0x1, 0xc420092e1c, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:1127 +0x30f
github.com/tektsu/gedcom.(*Decoder).scan(0xc4200d6040, 0xc4200c6000)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:75 +0x20b
github.com/tektsu/gedcom.(*Decoder).Decode(0xc4200d6040, 0xc42008a510, 0xc4200d6040, 0x46cfce)
        /home/stone/go/src/github.com/tektsu/gedcom/decoder.go:46 +0x446
github.com/tektsu/gedcom2hugo/cmd.readGedcom(0xc4200c42c0, 0xc42008a720, 0x602678, 0x5)
        /home/stone/go/src/github.com/tektsu/gedcom2hugo/cmd/generate.go:126 +0x1a8
github.com/tektsu/gedcom2hugo/cmd.Generate(0xc4200c42c0, 0xc4200c42c0, 0xc42004fb77)
        /home/stone/go/src/github.com/tektsu/gedcom2hugo/cmd/generate.go:41 +0x6ee
github.com/urfave/cli.HandleAction(0x5bcf00, 0x612460, 0xc4200c42c0, 0xc4200ec180, 0x0)
        /home/stone/go/src/github.com/urfave/cli/app.go:501 +0xc8
github.com/urfave/cli.(*App).Run(0xc4200f6000, 0xc42008a060, 0x3, 0x3, 0x0, 0x0)
        /home/stone/go/src/github.com/urfave/cli/app.go:268 +0x60c
main.main()
        /home/stone/go/src/github.com/tektsu/gedcom2hugo/main.go:48 +0x493

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.