ScalaBuff
ScalaBuff copied to clipboard
Enum references across .proto files not working properly
Create a file 'file1.proto' and define a message as follows:
//Assume all normal package and protoc options message CommonEnumMessage { enum CommonEnum { ALPHA= 0; BETA = 1; GAMMA = 2; } }
Now create a file 'file2.proto' with the following:
import file1.proto
message TestMessage { required CommonEnumMessage.CommonEnum test = 1; }
This results in generated code for TestMessage which does not compile because CommonEnum itself is treated as a normal message.
+1
Sorry for neglecting the issue, I'm very busy with some projects, I'll try to fix this when I find a few hours.
+1