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 service Bug #3434

Closed
thedawn3 opened this issue Mar 27, 2024 · 1 comment · Fixed by #3488
Closed

gf gen service Bug #3434

thedawn3 opened this issue Mar 27, 2024 · 1 comment · Fixed by #3488
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@thedawn3
Copy link

What version of Go and system type/arch are you using?
v2.6.4
Welcome to GoFrame!
Env Detail:
Go Version: go1.22.1 windows/amd64
GF Version(go.mod):
github.com/gogf/gf/[email protected]
CLI Detail:
Installed At: C:\GOPATH\bin\gf.exe
Built Go Version: go1.22.1
Built GF Version: v2.6.4
Others Detail:
Docs: https://goframe.org
Now : 2024-03-27T19:33:47+08:00

What version of GoFrame are you using?
Built GF Version: v2.6.4

Can this bug be re-produced with the latest release?
是的

What did you do?

image
当我使用gf gen service自动生成service代码时,如果logic中的方法含有/* */ 的字符串 则会被错误的认定为注释中间的代码,导致中间代码无法被正确识别并生成对应接口

What did you expect to see?
/* */ 为字符串内容时不应该被认为是要注释代码

What did you see instead?
中间的代码错误的被认为是注释了 导致无法正常生成service代码

@thedawn3 thedawn3 added the bug It is confirmed a bug, but don't worry, we'll handle it. label Mar 27, 2024
@oldme-git
Copy link
Member

Please show #3067

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

Successfully merging a pull request may close this issue.

2 participants