{"action":"created","issue":{"url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts/issues/23","repository_url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts","labels_url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts/issues/23/comments","events_url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts/issues/23/events","html_url":"https://github.com/agreatfool/grpc_tools_node_protoc_ts/issues/23","id":318723021,"number":23,"title":"Error when processing with enum embedded in message","user":{"login":"yijiasu","id":4447759,"avatar_url":"https://avatars2.githubusercontent.com/u/4447759?v=4","gravatar_id":"","url":"https://api.github.com/users/yijiasu","html_url":"https://github.com/yijiasu","followers_url":"https://api.github.com/users/yijiasu/followers","following_url":"https://api.github.com/users/yijiasu/following{/other_user}","gists_url":"https://api.github.com/users/yijiasu/gists{/gist_id}","starred_url":"https://api.github.com/users/yijiasu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yijiasu/subscriptions","organizations_url":"https://api.github.com/users/yijiasu/orgs","repos_url":"https://api.github.com/users/yijiasu/repos","events_url":"https://api.github.com/users/yijiasu/events{/privacy}","received_events_url":"https://api.github.com/users/yijiasu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-29T14:49:56Z","updated_at":"2018-05-02T09:40:42Z","closed_at":null,"author_association":"NONE","body":"See https://github.com/improbable-eng/ts-protoc-gen/issues/14\r\n\r\nThis repo also have this issue, when generating code with enum embedded in message, error occurs.\r\n\r\n```\r\nprotoc-gen-ts error: Error: No enum export for: UserVerifyReply.ReturnCode\r\n    at descriptor.getFieldList.forEach (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/lib/format/partial/MessageFormatter.js:122:27)\r\n    at Array.forEach (<anonymous>)\r\n    at Object.format (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/lib/format/partial/MessageFormatter.js:60:35)\r\n    at descriptor.getMessageTypeList.forEach.enumType (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/lib/format/ProtoMsgTsdFormatter.js:35:63)\r\n    at Array.forEach (<anonymous>)\r\n    at Object.format (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/lib/format/ProtoMsgTsdFormatter.js:34:41)\r\n    at codeGenRequest.getFileToGenerateList.forEach.fileName (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/index.js:32:79)\r\n    at Array.forEach (<anonymous>)\r\n    at Utility_1.Utility.withAllStdIn (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/index.js:27:48)\r\n    at Socket.<anonymous> (/Users/suyijia/Documents/iOS/***/node_modules/grpc_tools_node_protoc_ts/build/lib/Utility.js:68:13)\r\n\r\n--ts_out: protoc-gen-ts: Plugin failed with status code 1.\r\n```"},"comment":{"url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts/issues/comments/385921990","html_url":"https://github.com/agreatfool/grpc_tools_node_protoc_ts/issues/23#issuecomment-385921990","issue_url":"https://api.github.com/repos/agreatfool/grpc_tools_node_protoc_ts/issues/23","id":385921990,"user":{"login":"agreatfool","id":195293,"avatar_url":"https://avatars3.githubusercontent.com/u/195293?v=4","gravatar_id":"","url":"https://api.github.com/users/agreatfool","html_url":"https://github.com/agreatfool","followers_url":"https://api.github.com/users/agreatfool/followers","following_url":"https://api.github.com/users/agreatfool/following{/other_user}","gists_url":"https://api.github.com/users/agreatfool/gists{/gist_id}","starred_url":"https://api.github.com/users/agreatfool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agreatfool/subscriptions","organizations_url":"https://api.github.com/users/agreatfool/orgs","repos_url":"https://api.github.com/users/agreatfool/repos","events_url":"https://api.github.com/users/agreatfool/events{/privacy}","received_events_url":"https://api.github.com/users/agreatfool/received_events","type":"User","site_admin":false},"created_at":"2018-05-02T09:40:42Z","updated_at":"2018-05-02T09:40:42Z","author_association":"OWNER","body":"I have already tested this case at the beginning, and still cannot be reproduced.\r\n\r\nCould you please confirm several versions, as listed below are all my versions:\r\n```\r\nnode --version\r\nv8.4.0\r\nnpm --version\r\n5.2.0\r\nprotoc --version\r\nlibprotoc 3.3.0\r\ngrpc_tools_node_protoc --version\r\nlibprotoc 3.4.0\r\nnpm list -g --depth=0 | grep grpc-tools\r\ngrpc-tools@1.6.6\r\n```\r\n\r\nAnd also several version listed in the `examples/package.json`.\r\n"}}
{"actor":{"display_login":"agreatfool"}}