Closed hanwei88 closed 6 months ago
gf version v2.7.0 Welcome to GoFrame! Env Detail: Go Version: go1.22.2 linux/amd64 GF Version(go.mod): github.com/gogf/gf/contrib/drivers/mysql/v2@v2.7.0 github.com/gogf/gf/v2@v2.7.0 CLI Detail: Installed At: /home/hanwei/go/bin/gf Built Go Version: go1.22.2 Built GF Version: v2.7.0 Others Detail: Docs: https://goframe.org Now : 2024-05-10T00:46:16+08:00
Go version
go1.22.2
GoFrame version
2.7.0
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
gf gen enums报错
What did you see happen?
scanning for enums: /media/hanwei/dev/go/2024/api.bilibili.com panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xf0b4ec]
goroutine 229 [running]: go/types.(Checker).handleBailout(0xc000b40200, 0xc000ced718) /media/hanwei/68477DFF36C47279/go/src/go/types/check.go:367 +0x105 panic({0x16144a0?, 0x240d360?}) /media/hanwei/68477DFF36C47279/go/src/runtime/panic.go:770 +0x136 go/types.(StdSizes).Sizeof(0x0, {0x18611a8, 0x2415960}) /media/hanwei/68477DFF36C47279/go/src/go/types/sizes.go:228 +0x78c go/types.(*Config).sizeof(0xc000371ce0, {0x18611a8, 0x2415960})
What did you expect to see?
与文档不一样