{"action":"created","issue":{"url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/138","labels_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/138/comments","events_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/138/events","html_url":"https://github.com/stepancheg/rust-protobuf/issues/138","id":122987638,"number":138,"title":"Crashes with group","user":{"login":"equalsraf","id":715238,"avatar_url":"https://avatars.githubusercontent.com/u/715238?v=3","gravatar_id":"","url":"https://api.github.com/users/equalsraf","html_url":"https://github.com/equalsraf","followers_url":"https://api.github.com/users/equalsraf/followers","following_url":"https://api.github.com/users/equalsraf/following{/other_user}","gists_url":"https://api.github.com/users/equalsraf/gists{/gist_id}","starred_url":"https://api.github.com/users/equalsraf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/equalsraf/subscriptions","organizations_url":"https://api.github.com/users/equalsraf/orgs","repos_url":"https://api.github.com/users/equalsraf/repos","events_url":"https://api.github.com/users/equalsraf/events{/privacy}","received_events_url":"https://api.github.com/users/equalsraf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-18T17:02:12Z","updated_at":"2016-01-12T18:24:04Z","closed_at":"2016-01-12T18:24:04Z","body":"Cheers, .the following minimal example is crashing for me\r\n\r\n```protobuf\r\nmessage Something {\r\n        optional group Info = 12 {\r\n                optional string description = 13;\r\n        } \r\n}\r\n```\r\n\r\nTrace, using master ()\r\n\r\n```log\r\n$ protoc --rust_out . test.proto \r\nthread '<main>' panicked at 'unknown named type: TYPE_GROUP', src/lib/codegen.rs:430\r\nstack backtrace:\r\n   1:     0x5654bfe54b40 - sys::backtrace::tracing::imp::write::h3674b5beb3547da0Unt\r\n   2:     0x5654bfe56f15 - panicking::log_panic::_<closure>::closure.39701\r\n   3:     0x5654bfe56961 - panicking::log_panic::h1d8a2e79e18f3ea01nx\r\n   4:     0x5654bfe4d613 - sys_common::unwind::begin_unwind_inner::hf13a63e36305e192Ygs\r\n   5:     0x5654bfe4d9a8 - sys_common::unwind::begin_unwind_fmt::h4ca44836eade1bea4fs\r\n   6:     0x5654bfdd793a - codegen::field_type_name::h13fc2f7520c8abccItu\r\n                        at /home/raf/Code/rust-protobuf/<std macros>:8\r\n   7:     0x5654bfdd8b99 - codegen::_<impl>::parse::h02e968fb67b76930CDu\r\n                        at src/lib/codegen.rs:482\r\n   8:     0x5654bfdf6db9 - codegen::_<impl>::new::_<closure>::closure.24450\r\n                        at src/lib/codegen.rs:1417\r\n   9:     0x5654bfdf6d43 - ops::impls::_<impl>::call_once::call_once::h9552227763524705060\r\n                        at src/libcore/ops.rs:1795\r\n  10:     0x5654bfdf6ce0 - option::_<impl>::map::map::h11219711743242362464\r\n                        at src/libcore/option.rs:426\r\n  11:     0x5654bfdf6c7e - iter::_<impl>::next::next::h12089330511512178293\r\n                        at src/libcore/iter.rs:2259\r\n  12:     0x5654bfdf6877 - vec::_<impl>::from_iter::from_iter::h17632591381221447839\r\n                        at src/libcollections/vec.rs:1225\r\n  13:     0x5654bfdf67f9 - iter::Iterator::collect::collect::h13282404226433077471\r\n                        at src/libcore/iter.rs:809\r\n  14:     0x5654bfdf65a4 - codegen::_<impl>::new::hc1ceeafd4bdaf927Shw\r\n                        at src/lib/codegen.rs:1416\r\n  15:     0x5654bfe262fd - codegen::gen::hc0550010112dab97mcx\r\n                        at src/lib/codegen.rs:2044\r\n  16:     0x5654bfe2bf46 - compiler_plugin::plugin_main::h8328eb6c5cdb92be6hx\r\n                        at src/lib/compiler_plugin.rs:19\r\n  17:     0x5654bfe2bd7f - codegen::protoc_gen_rust_main::h49667e7285c062eaIhx\r\n                        at src/lib/codegen.rs:2070\r\n  18:     0x5654bfd57398 - main::hbb170ffd3fa5f18fgaa\r\n                        at src/protoc-gen-rust.rs:9\r\n  19:     0x5654bfe566a4 - sys_common::unwind::try::try_fn::h1717139548377829537\r\n  20:     0x5654bfe54078 - __rust_try\r\n  21:     0x5654bfe5633f - rt::lang_start::hbeb1bf39635abdcc9kx\r\n  22:     0x5654bfd573d9 - main\r\n  23:     0x7f5813f5c67f - __libc_start_main\r\n                        at /builddir/glibc-2.22/csu/libc-start.c:289\r\n  24:     0x5654bfd57288 - _start\r\n                        at ../sysdeps/x86_64/start.S:108\r\n  25:                0x0 - <unknown>\r\n--rust_out: protoc-gen-rust: Plugin failed with status code 101.\r\n```\r\n\r\nSeems groups are not supported, is this correct?"},"comment":{"url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/comments/171002084","html_url":"https://github.com/stepancheg/rust-protobuf/issues/138#issuecomment-171002084","issue_url":"https://api.github.com/repos/stepancheg/rust-protobuf/issues/138","id":171002084,"user":{"login":"stepancheg","id":28969,"avatar_url":"https://avatars.githubusercontent.com/u/28969?v=3","gravatar_id":"","url":"https://api.github.com/users/stepancheg","html_url":"https://github.com/stepancheg","followers_url":"https://api.github.com/users/stepancheg/followers","following_url":"https://api.github.com/users/stepancheg/following{/other_user}","gists_url":"https://api.github.com/users/stepancheg/gists{/gist_id}","starred_url":"https://api.github.com/users/stepancheg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stepancheg/subscriptions","organizations_url":"https://api.github.com/users/stepancheg/orgs","repos_url":"https://api.github.com/users/stepancheg/repos","events_url":"https://api.github.com/users/stepancheg/events{/privacy}","received_events_url":"https://api.github.com/users/stepancheg/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T18:24:04Z","updated_at":"2016-01-12T18:24:04Z","body":"Now protobuf ignores group fields while parses a stream. Hope it helps you. Please note, I haven't tested this code. 798ddfdf1f48511f29205c43baddd30b5927268b"}}