{"action":"created","issue":{"url":"https://api.github.com/repos/atom-community/linter/issues/1070","repository_url":"https://api.github.com/repos/atom-community/linter","labels_url":"https://api.github.com/repos/atom-community/linter/issues/1070/labels{/name}","comments_url":"https://api.github.com/repos/atom-community/linter/issues/1070/comments","events_url":"https://api.github.com/repos/atom-community/linter/issues/1070/events","html_url":"https://github.com/atom-community/linter/issues/1070","id":131511385,"number":1070,"title":"Uncaught TypeError: Invalid Point: (85, NaN)","user":{"login":"theorm","id":89853,"avatar_url":"https://avatars.githubusercontent.com/u/89853?v=3","gravatar_id":"","url":"https://api.github.com/users/theorm","html_url":"https://github.com/theorm","followers_url":"https://api.github.com/users/theorm/followers","following_url":"https://api.github.com/users/theorm/following{/other_user}","gists_url":"https://api.github.com/users/theorm/gists{/gist_id}","starred_url":"https://api.github.com/users/theorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theorm/subscriptions","organizations_url":"https://api.github.com/users/theorm/orgs","repos_url":"https://api.github.com/users/theorm/repos","events_url":"https://api.github.com/users/theorm/events{/privacy}","received_events_url":"https://api.github.com/users/theorm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom-community/linter/labels/external","name":"external","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T00:01:00Z","updated_at":"2016-02-05T00:10:33Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. Open a javascript project\r\n2. Make sure `jshint` linter is enabled\r\n3. Start opening files\r\n4. On one of the first files linter errors out\r\n5. Linter does not work anymore until editor is restarted\r\n\r\n**Atom Version**: 1.4.3\r\n**System**: Mac OS X 10.11.2\r\n**Thrown From**: [linter](https://github.com/atom-community/linter) package, v1.11.3\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Invalid Point: (85, NaN)\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/point.js:63\r\n\r\nTypeError: Invalid Point: (85, NaN)\r\n    at Function.module.exports.Point.assertValid (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/point.js:63:15)\r\n    at TextBuffer.module.exports.TextBuffer.clipPosition (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1015:13)\r\n    at TextBuffer.module.exports.TextBuffer.clipRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1003:20)\r\n    at MarkerLayer.module.exports.MarkerLayer.markRange (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/marker-layer.js:204:46)\r\n    at TextEditorMarkerLayer.module.exports.TextEditorMarkerLayer.markBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-marker-layer.js:78:52)\r\n    at DisplayBuffer.module.exports.DisplayBuffer.markBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/display-buffer.js:1100:38)\r\n    at TextEditor.module.exports.TextEditor.markBufferRange (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1339:59)\r\n    at /Users/roman/.atom/packages/linter/lib/editor-linter.js:50:34\r\n    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at EditorLinter.addMessage (/Users/roman/.atom/packages/linter/lib/editor-linter.js:137:20)\r\n    at /Users/roman/.atom/packages/linter/lib/linter-views.js:104:22\r\n    at Array.forEach (native)\r\n    at LinterViews.notifyEditorLinters (/Users/roman/.atom/packages/linter/lib/linter-views.js:102:11)\r\n    at LinterViews.render (/Users/roman/.atom/packages/linter/lib/linter-views.js:59:10)\r\n    at /Users/roman/.atom/packages/linter/lib/linter.coffee:39:14\r\n    at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)\r\n    at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)\r\n    at MessageRegistry.updatePublic (/Users/roman/.atom/packages/linter/lib/message-registry.js:84:18)\r\n    at UpdateMessages (/Users/roman/.atom/packages/linter/lib/message-registry.js:24:16)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -0:43.6.0 core:cancel (atom-text-editor.editor.is-focused)\r\n     -0:38.9.0 core:move-down (atom-text-editor.editor.is-focused)\r\n  2x -0:37.6.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -0:35 editor:newline (atom-text-editor.editor.is-focused)\r\n  2x -0:34.1.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -0:32.4.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -0:30.8.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:26.8.0 core:close (atom-text-editor.editor.is-focused)\r\n     -0:20.2.0 pane:split-right (atom-text-editor.editor.is-focused)\r\n     -0:16.6.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -0:15.3.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -0:13.2.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:12.2.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -0:10.9.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -0:09.2.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:08.8.0 core:close (atom-text-editor.editor.is-focused)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"autocomplete\",\r\n      \"atom-ctags\",\r\n      \"block-comment\",\r\n      \"linter-jscs\"\r\n    ],\r\n    \"followSymlinks\": true,\r\n    \"themes\": [\r\n      \"seti-ui\",\r\n      \"monokai\"\r\n    ]\r\n  },\r\n  \"linter\": {\r\n    \"ignoredLinterErrors\": [\r\n      \"jshint\"\r\n    ],\r\n    \"lintOnChangeInterval\": 2000\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nangularjs, v0.3.4\r\natom-beautify, v0.28.21\r\natom-ternjs, v0.13.2\r\natom-typescript, v8.2.0\r\nauto-indent, v0.5.0\r\ncolor-picker, v2.1.1\r\ncompare-files, v0.6.2\r\nlanguage-docker, v1.1.6\r\nlanguage-jade, v0.6.3\r\nlanguage-nginx, v0.6.1\r\nlanguage-scala, v1.1.6\r\nlinter, v1.11.3\r\nlinter-jshint, v1.3.0\r\nlinter-scalac, v1.3.1\r\nmonokai, v0.18.0\r\npretty-json, v0.4.1\r\nproject-manager, v2.7.6\r\nseti-ui, v0.8.1\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/atom-community/linter/issues/comments/180115937","html_url":"https://github.com/atom-community/linter/issues/1070#issuecomment-180115937","issue_url":"https://api.github.com/repos/atom-community/linter/issues/1070","id":180115937,"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},"created_at":"2016-02-05T00:10:33Z","updated_at":"2016-02-05T00:10:33Z","body":"I would recommend you check out a newer and more advanced Javascript linter such as `eslint` or `jscs`."}}