{"action":"opened","issue":{"url":"https://api.github.com/repos/capnp-js/plugin/issues/6","labels_url":"https://api.github.com/repos/capnp-js/plugin/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/capnp-js/plugin/issues/6/comments","events_url":"https://api.github.com/repos/capnp-js/plugin/issues/6/events","html_url":"https://github.com/capnp-js/plugin/issues/6","id":97896808,"number":6,"title":"Code generation with syntax errors","user":{"login":"sirudog","id":1550561,"avatar_url":"https://avatars.githubusercontent.com/u/1550561?v=3","gravatar_id":"","url":"https://api.github.com/users/sirudog","html_url":"https://github.com/sirudog","followers_url":"https://api.github.com/users/sirudog/followers","following_url":"https://api.github.com/users/sirudog/following{/other_user}","gists_url":"https://api.github.com/users/sirudog/gists{/gist_id}","starred_url":"https://api.github.com/users/sirudog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirudog/subscriptions","organizations_url":"https://api.github.com/users/sirudog/orgs","repos_url":"https://api.github.com/users/sirudog/repos","events_url":"https://api.github.com/users/sirudog/events{/privacy}","received_events_url":"https://api.github.com/users/sirudog/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T09:33:40Z","updated_at":"2015-07-29T09:33:40Z","closed_at":null,"body":"Hi,\r\n\r\nI get syntax errors in the generated code based on your rtc-github-protocol project.\r\nWhat I did:\r\n1. Cloned the repo. I noticed that it comes with already generated code (in amd folder).\r\n2. I cleaned the project: npm run clean\r\n3. I wanted to regenerate the code, so I installed the plugin locally: npm install capnp-js-plugin. \r\nIt worked, I got a few warnings but nothing serious:\r\n![install_plugin](https://cloud.githubusercontent.com/assets/1550561/8953873/f0118750-35e1-11e5-914a-23323bf887f8.png)\r\n4. Then I compiled the schemas: npm run compileMySchema\r\nI got this error:\r\n![compile_schema](https://cloud.githubusercontent.com/assets/1550561/8954003/f7ae73f0-35e2-11e5-92bb-cf76590c0f89.png)\r\n5. And as a result the generated files have syntax error (I only checked user.capnp.d/readers.js, lines 21 - 25):\r\n![generated_js](https://cloud.githubusercontent.com/assets/1550561/8954212/5812736c-35e4-11e5-9fe4-5d7afb8effce.png)\r\n\r\n I thought it is due to the unions, but in user.capnp, there are no unions, so even this fails on my pc.\r\nI was using io.js v2.4.0 (npm v2.13.0) and then node v0.12.7 (npm v2.11.3), same problem.\r\nCan you please help me in finding out what can go wrong here? "}}