encoredev / encore

Encore is the Backend Development Platform purpose-built to help you create event-driven and distributed systems.

Home Page:https://encore.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parser error: prob recursion

acreditacion opened this issue · comments

╭─[Stack Trace]
├─▶ codegen.(*Generator).Overlays /home/runner/work/encore/encore/encr.dev/v2/codegen/gen.go:86
├─▶ v2builder.BuilderImpl.Compile.func1 /home/runner/work/encore/encore/encr.dev/v2/v2builder/v2builder.go:156
├─▶ etrace.Sync2[...] /home/runner/work/encore/encore/encr.dev/internal/etrace/etrace.go:20
├─▶ v2builder.BuilderImpl.Compile /home/runner/work/encore/encore/encr.dev/v2/v2builder/v2builder.go:115
├─▶ run.(*Run).buildAndStart.func1 /home/runner/work/encore/encore/encr.dev/cli/daemon/run/run.go:293
╰─▶ optracker.(*AsyncBuildJobs).Go.func1 /home/runner/work/encore/encore/encr.dev/internal/optracker/async.go:50

Hi @acreditacion, can you provide some more information? The complete error, as well as ideally a reproducer? Thank you!

Hi, here's the file with the complete log. I'll try to make a reproducible repo. err.log

With recursion I'm refering to gorm-style struct fields.

type A struct {
    ID string
    // ...
    Bs []*B
}

type B struct {
    ID string
    // ...
    A *A
}

Also have a failed build id 11esjcsb0mgd1t3ssvjg on project prisma-api-owti

Thanks @acreditacion, investigating.