{"action":"opened","issue":{"url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/59","labels_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/59/comments","events_url":"https://api.github.com/repos/AtomLinter/atom-linter/issues/59/events","html_url":"https://github.com/AtomLinter/atom-linter/issues/59","id":117683250,"number":59,"title":"Further check rangeFromLineNumber parameters","user":{"login":"Arcanemagus","id":427137,"avatar_url":"https://avatars.githubusercontent.com/u/427137?v=3","gravatar_id":"","url":"https://api.github.com/users/Arcanemagus","html_url":"https://github.com/Arcanemagus","followers_url":"https://api.github.com/users/Arcanemagus/followers","following_url":"https://api.github.com/users/Arcanemagus/following{/other_user}","gists_url":"https://api.github.com/users/Arcanemagus/gists{/gist_id}","starred_url":"https://api.github.com/users/Arcanemagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Arcanemagus/subscriptions","organizations_url":"https://api.github.com/users/Arcanemagus/orgs","repos_url":"https://api.github.com/users/Arcanemagus/repos","events_url":"https://api.github.com/users/Arcanemagus/events{/privacy}","received_events_url":"https://api.github.com/users/Arcanemagus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-18T21:17:36Z","updated_at":"2015-11-18T21:17:36Z","closed_at":null,"body":"Currently being triggered by the following steps in `linter-eslint`, but stopping it here will fix anywhere else that this is causing crashes on:\r\n\r\n1. Try to run `linter-eslint` with a module missing (\"parser `babel-eslint` requested but not installed\r\n2. Get a response from the linter of:\r\n```json\r\n{\r\n  \"message\": \"Cannot find module 'babel-eslint'\",\r\n  \"line\": 0,\r\n  \"column\": 0,\r\n  \"severity\": 2\r\n}\r\n```\r\n3\\. `Helpers.rangeFromLineNumber(textEditor, line - 1)` is then called, meaning `rangeFromLineNumber` is being called with a line of `-1`.\r\n\r\nSo, tl;dr: Verify that `lineNumber` and `colStart` are within the valid range for a line before attempting to call Atom functions."}}