{"action":"opened","issue":{"url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/236","repository_url":"https://api.github.com/repos/decaffeinate/decaffeinate","labels_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/236/comments","events_url":"https://api.github.com/repos/decaffeinate/decaffeinate/issues/236/events","html_url":"https://github.com/decaffeinate/decaffeinate/issues/236","id":156592190,"number":236,"title":"Fails to parse files that begin with newlines","user":{"login":"marshall007","id":877936,"avatar_url":"https://avatars.githubusercontent.com/u/877936?v=3","gravatar_id":"","url":"https://api.github.com/users/marshall007","html_url":"https://github.com/marshall007","followers_url":"https://api.github.com/users/marshall007/followers","following_url":"https://api.github.com/users/marshall007/following{/other_user}","gists_url":"https://api.github.com/users/marshall007/gists{/gist_id}","starred_url":"https://api.github.com/users/marshall007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marshall007/subscriptions","organizations_url":"https://api.github.com/users/marshall007/orgs","repos_url":"https://api.github.com/users/marshall007/repos","events_url":"https://api.github.com/users/marshall007/events{/privacy}","received_events_url":"https://api.github.com/users/marshall007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-24T19:41:35Z","updated_at":"2016-05-24T19:41:35Z","closed_at":null,"body":"```\r\n$ echo \"\\n\\nPromise = require 'bluebird'\" | decaffeinate\r\n\r\n/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:9025\r\n        throw err;\r\n        ^\r\n\r\nError: unexpected 'null' index, perhaps you forgot to check the result of 'indexOfTokenContainingSourceIndex'?\r\n  at SourceTokenList._validateIndex (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/coffee-lex/dist/coffee-lex.umd.js:628:17)\r\n  at SourceTokenList.tokenAtIndex (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/coffee-lex/dist/coffee-lex.umd.js:346:14)\r\n  at makeNode (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1730:54)\r\n  at convertNode (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1211:22)\r\n  at convertChild (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1681:18)\r\n  at convertNode (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1164:23)\r\n  at convertChild (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1681:18)\r\n  at /Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1269:27\r\n  at convertNode (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1298:14)\r\n  at convertChild (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1681:18)\r\n  at Array.map (native)\r\n  at convertChild (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1677:24)\r\n  at convertNode (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:1148:25)\r\n  at convert (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:960:12)\r\n  at Object.parse (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/node_modules/decaffeinate-parser/dist/decaffeinate-parser.umd.js:881:33)\r\n  at parse$2 (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:7190:32)\r\n  at Function.run (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:7222:17)\r\n  at /Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:9091:28\r\n  at Array.forEach (native)\r\n  at runStages (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:9090:10)\r\n  at convert$1 (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:9083:10)\r\n  at Socket.<anonymous> (/Users/marshall/.nvm/versions/node/v4.2.2/lib/node_modules/decaffeinate/dist/decaffeinate.cjs.js:9019:19)\r\n  at emitNone (events.js:72:20)\r\n  at Socket.emit (events.js:166:7)\r\n  at endReadableNT (_stream_readable.js:905:12)\r\n  at doNTCallback2 (node.js:441:9)\r\n  at process._tickCallback (node.js:355:17)\r\n```"}}
{"actor":{"display_login":"marshall007"}}