{"action":"opened","issue":{"url":"https://api.github.com/repos/sindresorhus/atom-linter-xo/issues/12","labels_url":"https://api.github.com/repos/sindresorhus/atom-linter-xo/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/atom-linter-xo/issues/12/comments","events_url":"https://api.github.com/repos/sindresorhus/atom-linter-xo/issues/12/events","html_url":"https://github.com/sindresorhus/atom-linter-xo/issues/12","id":120147662,"number":12,"title":"Uncaught TypeError: Cannot read property 'split' of undefined","user":{"login":"wmertens","id":54934,"avatar_url":"https://avatars.githubusercontent.com/u/54934?v=3","gravatar_id":"","url":"https://api.github.com/users/wmertens","html_url":"https://github.com/wmertens","followers_url":"https://api.github.com/users/wmertens/followers","following_url":"https://api.github.com/users/wmertens/following{/other_user}","gists_url":"https://api.github.com/users/wmertens/gists{/gist_id}","starred_url":"https://api.github.com/users/wmertens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmertens/subscriptions","organizations_url":"https://api.github.com/users/wmertens/orgs","repos_url":"https://api.github.com/users/wmertens/repos","events_url":"https://api.github.com/users/wmertens/events{/privacy}","received_events_url":"https://api.github.com/users/wmertens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-03T11:14:19Z","updated_at":"2015-12-03T11:14:19Z","closed_at":null,"body":"This happens sometimes, also for my coworkers:\r\n\r\n1. Achieve unknown precondition\r\n2. Run xo-fix\r\n3. TypeError\r\n\r\n**Atom Version**: 1.2.4\r\n**System**: Mac OS X 10.11.1\r\n**Thrown From**: [linter-xo](https://github.com/sindresorhus/atom-linter-xo) package, v0.10.3\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'split' of undefined\r\n\r\n```\r\nAt /Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:770\r\n\r\nTypeError: Cannot read property 'split' of undefined\r\n    at Function.module.exports.Range.fromText (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/range.js:49:19)\r\n    at TextBuffer.module.exports.TextBuffer.setTextInRange (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:549:24)\r\n    at /Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:534:26\r\n    at TextBuffer.module.exports.TextBuffer.transact (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:765:18)\r\n    at TextBuffer.module.exports.TextBuffer.setTextInRange (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:532:21)\r\n    at TextBuffer.module.exports.TextBuffer.setText (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:472:19)\r\n    at TextEditor.module.exports.TextEditor.setText (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:707:26)\r\n    at module.exports (/Users/wmertens/.atom/packages/linter-xo/node_modules/atom-set-text/index.js:13:9)\r\n    at atom-text-editor.XOFix (/Users/wmertens/.atom/packages/linter-xo/index.js:81:4)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)\r\n    at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)\r\n    at space-pen-div.atom.commands.add.core:confirm (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:533:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:356:22)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:99:36)\r\n    at HTMLDocument.<anonymous> (/Users/wmertens/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:61)\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -1:43.9.0 editor:select-to-end-of-word (atom-text-editor.editor.is-focused)\r\n     -1:42.2.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused.autocomplete-active)\r\n     -1:41.7.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -1:41.5.0 core:move-down (atom-text-editor.editor.is-focused)\r\n     -1:35.8.0 command-palette:toggle (atom-text-editor.editor.is-focused)\r\n     -1:33.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -1:33.7.0 XO:Fix (atom-text-editor.editor)\r\n     -1:32.4.0 refactor:done (atom-text-editor.editor.is-focused)\r\n     -1:32.4.0 editor:newline (atom-text-editor.editor.is-focused)\r\n     -1:31.2.0 core:undo (atom-text-editor.editor.is-focused)\r\n  2x -1:26.1.0 core:save (atom-text-editor.editor.is-focused)\r\n     -0:39 core:close (atom-text-editor.editor.is-focused)\r\n     -0:37.7.0 pane:reopen-closed-item (atom-text-editor.editor.is-focused)\r\n     -0:35.5.0 command-palette:toggle (atom-text-editor.editor.is-focused)\r\n     -0:33.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -0:33.9.0 XO:Fix (atom-text-editor.editor)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"my-package\",\r\n      \"atom-terminal-panel\",\r\n      \"language-coffee-script-angular\",\r\n      \"pepper-autocomplete\",\r\n      \"linter-tidy\",\r\n      \"linter-python-pyflakes\",\r\n      \"web-browser\",\r\n      \"open-last-project\",\r\n      \"livereload\",\r\n      \"Coffeefilter\",\r\n      \"language-javascript-semantic\",\r\n      \"linter-coffeelint\",\r\n      \"git-plus\",\r\n      \"nuclide-diff-view\",\r\n      \"nuclide-quick-open\",\r\n      \"nuclide-remote-projects\",\r\n      \"linter-eslint\"\r\n    ],\r\n    \"projectHome\": \"~/Documents/Projects\",\r\n    \"themes\": [\r\n      \"one-dark-ui\",\r\n      \"solarized-light-syntax\"\r\n    ],\r\n    \"destroyEmptyPanes\": false,\r\n    \"packagesWithKeymapsDisabled\": [\r\n      \"animated-cursor\",\r\n      \"highlight-line\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-beautify, v0.28.19\r\nautocomplete-clang, v0.8.8\r\nautocomplete-modules, v1.3.1\r\nautocomplete-python, v0.10.4\r\nbrowser-plus, v0.0.54\r\ncmd-9, v0.0.3\r\ncoffee-refactor, v0.7.0\r\nesformatter, v1.16.0\r\nfile-icons, v1.6.12\r\nhighlight-line, v0.11.0\r\nindent-guide-improved, v1.4.4\r\njs-refactor, v0.6.0\r\nlanguage-babel, v2.5.3\r\nlanguage-jade, v0.6.2\r\nlast-cursor-position, v0.9.0\r\nlinter, v1.11.2\r\nlinter-xo, v0.10.3\r\nminimap, v4.16.2\r\nminimap-find-and-replace, v4.3.2\r\nminimap-git-diff, v4.1.8\r\nminimap-selection, v4.3.1\r\nnix, v2.1.0\r\nproject-manager, v2.6.5\r\nrefactor, v0.6.0\r\nremote-edit, v1.8.22\r\ntab-length, v0.1.0\r\ntab-numbers, v0.3.0\r\ntidy-tabs, v0.3.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"}}