{"action":"created","issue":{"url":"https://api.github.com/repos/capnproto/capnproto/issues/695","repository_url":"https://api.github.com/repos/capnproto/capnproto","labels_url":"https://api.github.com/repos/capnproto/capnproto/issues/695/labels{/name}","comments_url":"https://api.github.com/repos/capnproto/capnproto/issues/695/comments","events_url":"https://api.github.com/repos/capnproto/capnproto/issues/695/events","html_url":"https://github.com/capnproto/capnproto/issues/695","id":334687839,"node_id":"MDU6SXNzdWUzMzQ2ODc4Mzk=","number":695,"title":"Can't run capnpc-ts on windows","user":{"login":"piscisaureus","id":218257,"node_id":"MDQ6VXNlcjIxODI1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/218257?v=4","gravatar_id":"","url":"https://api.github.com/users/piscisaureus","html_url":"https://github.com/piscisaureus","followers_url":"https://api.github.com/users/piscisaureus/followers","following_url":"https://api.github.com/users/piscisaureus/following{/other_user}","gists_url":"https://api.github.com/users/piscisaureus/gists{/gist_id}","starred_url":"https://api.github.com/users/piscisaureus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piscisaureus/subscriptions","organizations_url":"https://api.github.com/users/piscisaureus/orgs","repos_url":"https://api.github.com/users/piscisaureus/repos","events_url":"https://api.github.com/users/piscisaureus/events{/privacy}","received_events_url":"https://api.github.com/users/piscisaureus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-21T22:59:31Z","updated_at":"2018-06-21T23:21:54Z","closed_at":null,"author_association":"NONE","body":"There is no way to run the capnpc typescript compiler on windows. The reason is that capnp-ts is not a binary (.exe) file but rather a shell script (it's called capnpc-ts.cmd).\r\nIt does work on linux because there capnpc-ts has a shebang line, but windows doesn't support this.\r\n\r\nThe easiest way to work around this would be to spawn \"cmd.exe /c capnpc-ts\"; this wouldn't break plugins that do provide .exe files.\r\n\r\nOne might argue that this is a capnp-ts bug and should be reported there -- but there seems to be no reasonable solution that they could implement, since javascript/typescript can't be compiled into a binary."},"comment":{"url":"https://api.github.com/repos/capnproto/capnproto/issues/comments/399273315","html_url":"https://github.com/capnproto/capnproto/issues/695#issuecomment-399273315","issue_url":"https://api.github.com/repos/capnproto/capnproto/issues/695","id":399273315,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTI3MzMxNQ==","user":{"login":"piscisaureus","id":218257,"node_id":"MDQ6VXNlcjIxODI1Nw==","avatar_url":"https://avatars2.githubusercontent.com/u/218257?v=4","gravatar_id":"","url":"https://api.github.com/users/piscisaureus","html_url":"https://github.com/piscisaureus","followers_url":"https://api.github.com/users/piscisaureus/followers","following_url":"https://api.github.com/users/piscisaureus/following{/other_user}","gists_url":"https://api.github.com/users/piscisaureus/gists{/gist_id}","starred_url":"https://api.github.com/users/piscisaureus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piscisaureus/subscriptions","organizations_url":"https://api.github.com/users/piscisaureus/orgs","repos_url":"https://api.github.com/users/piscisaureus/repos","events_url":"https://api.github.com/users/piscisaureus/events{/privacy}","received_events_url":"https://api.github.com/users/piscisaureus/received_events","type":"User","site_admin":false},"created_at":"2018-06-21T23:21:54Z","updated_at":"2018-06-21T23:21:54Z","author_association":"NONE","body":"@kentonv \r\nIt looks like it's a little bit more complicated than that. _spanlp() does correctly locate the .cmd file, but somehow cmd.exe tries to run \"plugin\", which it can't find.\r\n\r\n```\r\nC:\\Users\\BertBelder\\cap>capnp compile a.cnp -o ts\r\n'plugin' is not recognized as an internal or external command,\r\noperable program or batch file.\r\nts: plugin failed: exit code 1\r\n```\r\n\r\n\r\n"}}
{"actor":{"display_login":"piscisaureus"}}