{"action":"created","issue":{"url":"https://api.github.com/repos/angular/clutz/issues/633","repository_url":"https://api.github.com/repos/angular/clutz","labels_url":"https://api.github.com/repos/angular/clutz/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/angular/clutz/issues/633/comments","events_url":"https://api.github.com/repos/angular/clutz/issues/633/events","html_url":"https://github.com/angular/clutz/issues/633","id":283674468,"number":633,"title":"Gents crashes on hello world","user":{"login":"theRobinator","id":1115313,"avatar_url":"https://avatars2.githubusercontent.com/u/1115313?v=4","gravatar_id":"","url":"https://api.github.com/users/theRobinator","html_url":"https://github.com/theRobinator","followers_url":"https://api.github.com/users/theRobinator/followers","following_url":"https://api.github.com/users/theRobinator/following{/other_user}","gists_url":"https://api.github.com/users/theRobinator/gists{/gist_id}","starred_url":"https://api.github.com/users/theRobinator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theRobinator/subscriptions","organizations_url":"https://api.github.com/users/theRobinator/orgs","repos_url":"https://api.github.com/users/theRobinator/repos","events_url":"https://api.github.com/users/theRobinator/events{/privacy}","received_events_url":"https://api.github.com/users/theRobinator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-20T19:43:19Z","updated_at":"2017-12-22T00:47:17Z","closed_at":null,"author_association":"NONE","body":"I originally tried gents on my Closure-annotated project and it crashed on the first line of code. I tried to create a minimal reproduction, and ended up with this. I'm running OSX 10.11.6, Java 1.8.0_121.\r\n\r\n```\r\nRobin$ cat test.js\r\nconsole.log('hello world!');\r\nRobin$ \r\nRobin$ gents test.js\r\njava.lang.NullPointerException\r\n\tat java.io.File.<init>(File.java:277)\r\n\tat com.google.javascript.gents.TypeScriptGenerator.generateTypeScript(TypeScriptGenerator.java:147)\r\n\tat com.google.javascript.gents.TypeScriptGenerator.main(TypeScriptGenerator.java:75)\r\nUncaught exception in gents, exiting.\r\n```\r\n\r\nInterestingly, if I specify `-o somedir`, correct output is still written to that directory. However, that seems to only work for some files -- the files in my project don't produce any output at all."},"comment":{"url":"https://api.github.com/repos/angular/clutz/issues/comments/353494249","html_url":"https://github.com/angular/clutz/issues/633#issuecomment-353494249","issue_url":"https://api.github.com/repos/angular/clutz/issues/633","id":353494249,"user":{"login":"rkirov","id":95713,"avatar_url":"https://avatars2.githubusercontent.com/u/95713?v=4","gravatar_id":"","url":"https://api.github.com/users/rkirov","html_url":"https://github.com/rkirov","followers_url":"https://api.github.com/users/rkirov/followers","following_url":"https://api.github.com/users/rkirov/following{/other_user}","gists_url":"https://api.github.com/users/rkirov/gists{/gist_id}","starred_url":"https://api.github.com/users/rkirov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkirov/subscriptions","organizations_url":"https://api.github.com/users/rkirov/orgs","repos_url":"https://api.github.com/users/rkirov/repos","events_url":"https://api.github.com/users/rkirov/events{/privacy}","received_events_url":"https://api.github.com/users/rkirov/received_events","type":"User","site_admin":false},"created_at":"2017-12-22T00:47:17Z","updated_at":"2017-12-22T00:47:17Z","author_association":"CONTRIBUTOR","body":"It's because of --rewriteLog that we end up always using in Google. Fix coming."}}
{"actor":{"display_login":"rkirov"}}