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

gf gen enums error report #3568

Closed
hanwei88 opened this issue May 9, 2024 · 1 comment
Closed

gf gen enums error report #3568

hanwei88 opened this issue May 9, 2024 · 1 comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@hanwei88
Copy link

hanwei88 commented May 9, 2024

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?

与文档不一样

@hanwei88 hanwei88 added the bug It is confirmed a bug, but don't worry, we'll handle it. label May 9, 2024
@Issues-translate-bot Issues-translate-bot changed the title gf gen enums报错 gf gen enums error report May 9, 2024
@hanwei88
Copy link
Author

hanwei88 commented May 9, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

1 participant