{"action":"closed","issue":{"url":"https://api.github.com/repos/mafintosh/protocol-buffers/issues/38","labels_url":"https://api.github.com/repos/mafintosh/protocol-buffers/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/mafintosh/protocol-buffers/issues/38/comments","events_url":"https://api.github.com/repos/mafintosh/protocol-buffers/issues/38/events","html_url":"https://github.com/mafintosh/protocol-buffers/issues/38","id":60772571,"number":38,"title":"Getting `Error: Groups are not supported` when not using groups","user":{"login":"bruc3yan","id":6687944,"avatar_url":"https://avatars.githubusercontent.com/u/6687944?v=3","gravatar_id":"","url":"https://api.github.com/users/bruc3yan","html_url":"https://github.com/bruc3yan","followers_url":"https://api.github.com/users/bruc3yan/followers","following_url":"https://api.github.com/users/bruc3yan/following{/other_user}","gists_url":"https://api.github.com/users/bruc3yan/gists{/gist_id}","starred_url":"https://api.github.com/users/bruc3yan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruc3yan/subscriptions","organizations_url":"https://api.github.com/users/bruc3yan/orgs","repos_url":"https://api.github.com/users/bruc3yan/repos","events_url":"https://api.github.com/users/bruc3yan/events{/privacy}","received_events_url":"https://api.github.com/users/bruc3yan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-12T05:18:33Z","updated_at":"2015-03-12T07:03:45Z","closed_at":"2015-03-12T07:03:45Z","body":"Hello, \r\n\r\nI'm trying to get both encode (currently working!) and decode (not working) to work with the latest version of protocol-buffers; however, every time I try to call `.decode`, I get the following in my shell:\r\n\r\n```shell\r\n% node example.js\r\nencoded vehicle <Buffer 00 c0 a9 07 02 08 43 61 64 69 6c 6c 61 63>\r\n/Users/test/test/node_modules/protocol-buffers/compile.js:21\r\n    throw new Error('Groups are not supported')\r\n          ^\r\nError: Groups are not supported\r\n    at skip (/Users/test/test/node_modules/protocol-buffers/compile.js:21:11)\r\n    at Object.decode (eval at <anonymous> (/Users/test/test/node_modules/protocol-buffers/node_modules/generate-function/index.js:55:21), <anonymous>:30:16)\r\n    at Object.<anonymous> (/Users/test/test/pf.js:24:32)\r\n    at Module._compile (module.js:460:26)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:501:10)\r\n    at startup (node.js:129:16)\r\n    at node.js:814:3\r\n```\r\n\r\nHere's my `example.js` file:\r\n```javascript\r\nvar protobuf = require('protocol-buffers/require');\r\nvar schema = protobuf('schema.proto');\r\n\r\nvar vehicle = {\r\n  price: 120000,\r\n  make: 'Cadillac'\r\n};\r\n\r\nvar encodeObj = schema.Vehicle.encode(vehicle);\r\nconsole.log('encoded vehicle', encodeObj);\r\n\r\nvar decodeObj = schema.Vehicle.decode(encodeObj);\r\n// console.log('decoded vehicle', decodeObj);\r\n```\r\nI don't believe that I have nesting or groups in my simple code but I still can't figure out why it's showing the error.\r\nHere's my `package.json` file\r\n```json\r\n{\r\n    \"name\":\"test\",\r\n    \"version\": \"0.0.0\",\r\n    \"private\": true,\r\n    \"scripts\": {\r\n        \"start\": \"nodemon ./example.js\"\r\n    },\r\n    \"dependencies\": {\r\n        \"express\": \"*\",\r\n        \"mongodb\": \"*\",\r\n        \"mongoose\": \"*\",\r\n        \"kafka-node\": \"*\",\r\n        \"protocol-buffers\": \"*\",\r\n        \"nodemon\": \"*\",\r\n        \"resolve-protobuf-schema\": \"*\"\r\n    }\r\n}\r\n```\r\nAnd here's my `schema.proto` file:\r\n```proto\r\nmessage Vehicle {\r\n  optional int32 price = 0;\r\n  required string make = null;\r\n}\r\n```"}}