You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of protobuf and what language are you using?
Version:
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.34.2
// protoc v3.20.1
What did you do?
Generate code with an extremely large enum. I cannot provide the source file, but the issue is the generated map is too large for the go compiler to compile it.
I am not sure what you expect the Go Protobuf maintainers can do here? You seem to be running into a Go compiler limitation (golang/go#33437, which you linked to).
In general, I would strongly recommend to fix the issue at the source: Split up your large number of values into smaller chunks. This will likely ease stress on your build system and toolchain in a number of dimensions.
I’ll close this issue for now as the issue report seems too incomplete to do anything with (no example provided, claims it’s running into a years-old compiler bug).
What version of protobuf and what language are you using?
Version:
What did you do?
Generate code with an extremely large enum. I cannot provide the source file, but the issue is the generated map is too large for the go compiler to compile it.
What did you expect to see?
A successful compile.
What did you see instead?
golang/go#33437 <-- This issue
Make sure you include information that can help us debug (full error message, exception listing, stack trace, logs).
Anything else we should know about your project / environment?
We generate protobufs from an internal source. These files are large, complex, and the enums get extremely large (1000s of entries).
The text was updated successfully, but these errors were encountered: