{"action":"created","issue":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/128","labels_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/128/comments","events_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/128/events","html_url":"https://github.com/AtomLinter/linter-eslint/issues/128","id":91047375,"number":128,"title":"\"Cannot read property 'match' of undefined\"","user":{"login":"atombender","id":50314,"avatar_url":"https://avatars.githubusercontent.com/u/50314?v=3","gravatar_id":"","url":"https://api.github.com/users/atombender","html_url":"https://github.com/atombender","followers_url":"https://api.github.com/users/atombender/followers","following_url":"https://api.github.com/users/atombender/following{/other_user}","gists_url":"https://api.github.com/users/atombender/gists{/gist_id}","starred_url":"https://api.github.com/users/atombender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atombender/subscriptions","organizations_url":"https://api.github.com/users/atombender/orgs","repos_url":"https://api.github.com/users/atombender/repos","events_url":"https://api.github.com/users/atombender/events{/privacy}","received_events_url":"https://api.github.com/users/atombender/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T18:58:43Z","updated_at":"2015-06-25T20:05:29Z","closed_at":null,"body":"`linter-eslint` sometimes passes `undefined` to `TextEditor.indentationForBufferRow()`:\r\n\r\n```\r\n/Users/alex/.atom/packages/linter-eslint/lib/linter-eslint.coffee:136 [Linter-ESLint] error while linting file\r\n/Users/alex/.atom/packages/linter-eslint/lib/linter-eslint.coffee:137 Cannot read property 'match' of undefined\r\n/Users/alex/.atom/packages/linter-eslint/lib/linter-eslint.coffee:138 TypeError: Cannot read property 'match' of undefined\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.indentLevelForLine (/Applications/Atom.app/Contents/Resources/app.asar/src/tokenized-buffer.js:647:23)\r\n  at DisplayBuffer.module.exports.DisplayBuffer.indentLevelForLine (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:818:35)\r\n  at TextEditor.module.exports.TextEditor.indentLevelForLine (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2220:33)\r\n  at TextEditor.module.exports.TextEditor.indentationForBufferRow (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2192:19)\r\n  at /Users/alex/.atom/packages/linter-eslint/lib/linter-eslint.coffee:108:44\r\n  at Array.map (native)\r\n  at /Users/alex/.atom/packages/linter-eslint/lib/linter-eslint.coffee:104:18\r\n  at exports.allowUnsafeNewFunction (/Users/alex/.atom/packages/linter-eslint/node_modules/loophole/lib/loophole.js:25:14)\r\n  at Object.provider.lint (/Users/alex/.atom/packages/linter-eslint/lib/linter-eslint.coffee:101:13)\r\n  at /Users/alex/.atom/packages/linter/lib/editor-linter.coffee:79:24\r\n  at /Users/alex/.atom/packages/linter/lib/editor-linter.coffee:78:25\r\n  at Set.forEach (native)\r\n  at EditorLinter._lint (/Users/alex/.atom/packages/linter/lib/editor-linter.coffee:72:26)\r\n  at EditorLinter.lint (/Users/alex/.atom/packages/linter/lib/editor-linter.coffee:66:18)\r\n  at /Users/alex/.atom/packages/linter/lib/editor-linter.coffee:22:37\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1183:25\r\n```\r\n\r\nThis is `linter-eslint@1.0.8` and `eslint@0.23.0`."},"comment":{"url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/comments/115378638","html_url":"https://github.com/AtomLinter/linter-eslint/issues/128#issuecomment-115378638","issue_url":"https://api.github.com/repos/AtomLinter/linter-eslint/issues/128","id":115378638,"user":{"login":"scottcorgan","id":974723,"avatar_url":"https://avatars.githubusercontent.com/u/974723?v=3","gravatar_id":"","url":"https://api.github.com/users/scottcorgan","html_url":"https://github.com/scottcorgan","followers_url":"https://api.github.com/users/scottcorgan/followers","following_url":"https://api.github.com/users/scottcorgan/following{/other_user}","gists_url":"https://api.github.com/users/scottcorgan/gists{/gist_id}","starred_url":"https://api.github.com/users/scottcorgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottcorgan/subscriptions","organizations_url":"https://api.github.com/users/scottcorgan/orgs","repos_url":"https://api.github.com/users/scottcorgan/repos","events_url":"https://api.github.com/users/scottcorgan/events{/privacy}","received_events_url":"https://api.github.com/users/scottcorgan/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T20:05:29Z","updated_at":"2015-06-25T20:05:29Z","body":"I can confirm this error with the same module versions. Disabling linter-eslint removed the error popping up in Atom."}}