{"action":"created","issue":{"url":"https://api.github.com/repos/dcodeIO/ProtoBuf.js/issues/255","labels_url":"https://api.github.com/repos/dcodeIO/ProtoBuf.js/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/dcodeIO/ProtoBuf.js/issues/255/comments","events_url":"https://api.github.com/repos/dcodeIO/ProtoBuf.js/issues/255/events","html_url":"https://github.com/dcodeIO/ProtoBuf.js/issues/255","id":68528158,"number":255,"title":"pbjs generates illegal proto syntax","user":{"login":"murgatroid99","id":961599,"avatar_url":"https://avatars.githubusercontent.com/u/961599?v=3","gravatar_id":"","url":"https://api.github.com/users/murgatroid99","html_url":"https://github.com/murgatroid99","followers_url":"https://api.github.com/users/murgatroid99/followers","following_url":"https://api.github.com/users/murgatroid99/following{/other_user}","gists_url":"https://api.github.com/users/murgatroid99/gists{/gist_id}","starred_url":"https://api.github.com/users/murgatroid99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/murgatroid99/subscriptions","organizations_url":"https://api.github.com/users/murgatroid99/orgs","repos_url":"https://api.github.com/users/murgatroid99/repos","events_url":"https://api.github.com/users/murgatroid99/events{/privacy}","received_events_url":"https://api.github.com/users/murgatroid99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-14T23:41:03Z","updated_at":"2015-04-15T03:57:59Z","closed_at":null,"body":"If I have a proto file `test.proto` that contains the line `package test` and I run `pbjs test.proto -target=proto`, the output starts with `package \"test\"`. This syntax is illegal, and causes the ProtoBuf.js parser to crash."},"comment":{"url":"https://api.github.com/repos/dcodeIO/ProtoBuf.js/issues/comments/93179690","html_url":"https://github.com/dcodeIO/ProtoBuf.js/issues/255#issuecomment-93179690","issue_url":"https://api.github.com/repos/dcodeIO/ProtoBuf.js/issues/255","id":93179690,"user":{"login":"sunwenteng","id":11513967,"avatar_url":"https://avatars.githubusercontent.com/u/11513967?v=3","gravatar_id":"","url":"https://api.github.com/users/sunwenteng","html_url":"https://github.com/sunwenteng","followers_url":"https://api.github.com/users/sunwenteng/followers","following_url":"https://api.github.com/users/sunwenteng/following{/other_user}","gists_url":"https://api.github.com/users/sunwenteng/gists{/gist_id}","starred_url":"https://api.github.com/users/sunwenteng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunwenteng/subscriptions","organizations_url":"https://api.github.com/users/sunwenteng/orgs","repos_url":"https://api.github.com/users/sunwenteng/repos","events_url":"https://api.github.com/users/sunwenteng/events{/privacy}","received_events_url":"https://api.github.com/users/sunwenteng/received_events","type":"User","site_admin":false},"created_at":"2015-04-15T03:57:59Z","updated_at":"2015-04-15T03:57:59Z","body":"why do you parse a .proto file to a .proto file?"}}