-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
protoc-gen-go generator missing type in printer #517
Comments
The generator package's interface isn't really intended for general-purpose use. (README.md describes it as "not supported and subject to incompatible changes without notice".) Given that the package API is intentionally unsupported as it is, I think that extending it to support additional uses would be a mistake. |
Although it is something really simple to fix and the current behavior of only printing pointers to int64 and int32 and not int64 and int32 themselves is very weird. |
I'm going to close this. The generator package is not a supported public interface. If we make a change to it to support an additional external use, we are implicitly committing to supporting that use in the future. It's simply not practical to do that with the package API as it stands, and I don't want to give the false impression that we can do so. |
Discussion about whether to more strongly support plugins and if so, how is over at #547. |
Hello I had a strange error today while trying to generate some custom code:
2018/02/19 14:10:09 protoc-gen-gogo: error:unknown type in printer: int64
Looking into the
P()
implementation I am seeingThere is no case for
case int32:
&&case int64:
? there is any reason for that ?If not, an open a PR is available.
Best regards,
The text was updated successfully, but these errors were encountered: