Version: master/v3.5.0.
Language: Ruby
OS: macOS
Compiler: gcc
message parent_msg
{
message child_msg {}
}
Compile with flag --ruby_out
Result
Google::Protobuf::DescriptorPool.generated_pool.build do
add_message "parent_msg" do
end
add_message "parent_msg.child_msg" do
end
end
Parent_msg = Google::Protobuf::DescriptorPool.generated_pool.lookup("parent_msg").msgclass
parent_msg::Child_msg = Google::Protobuf::DescriptorPool.generated_pool.lookup("parent_msg.child_msg").msgclass
undefined local variable or method `parent_msg' for main:Object
Expected
Parent_msg::Child_msg = Google::Protobuf::DescriptorPool.generated_pool.lookup("parent_msg.child_msg").msgclass
Got
parent_msg::Child_msg = Google::Protobuf::DescriptorPool.generated_pool.lookup("parent_msg.child_msg").msgclass
I'll have a fix for that.
Most helpful comment
I'll have a fix for that.