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

通过Hertz IDL文件生成的代码会报错 #1204

Closed
CodeCaRobot opened this issue Sep 25, 2024 · 3 comments
Closed

通过Hertz IDL文件生成的代码会报错 #1204

CodeCaRobot opened this issue Sep 25, 2024 · 3 comments
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale

Comments

@CodeCaRobot
Copy link

通过Hertz 代码生成IDL 会报错,因为thriftgo (0.3.17) 生成的代码中会调用thrift.TProtocol (thrift v0.20.0),其中ReadStructBegin方法多了一个参数ReadFieldBegin(ctx context.Context) ,而在thriftgo (0.3.17)中在调用ReadFieldBegin方法时候没有传Context这个参数,导致生成的代码报错!

@github-actions github-actions bot added the invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) label Sep 25, 2024
Copy link

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 25, 2024
@FGYFFFF
Copy link
Contributor

FGYFFFF commented Sep 26, 2024

go mod edit -replace=github.com/apache/thrift=github.com/apache/thrift@v0.13.0

试试

@github-actions github-actions bot removed the stale label Sep 26, 2024
Copy link

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.

@github-actions github-actions bot added the stale label Sep 26, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale
Development

No branches or pull requests

2 participants