{"action":"created","issue":{"url":"https://api.github.com/repos/nesQuick/atom-wordcount/issues/25","labels_url":"https://api.github.com/repos/nesQuick/atom-wordcount/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/nesQuick/atom-wordcount/issues/25/comments","events_url":"https://api.github.com/repos/nesQuick/atom-wordcount/issues/25/events","html_url":"https://github.com/nesQuick/atom-wordcount/issues/25","id":59743398,"number":25,"title":"Uncaught TypeError: Cannot read property 'split' of undefined","user":{"login":"mjswensen","id":1591879,"avatar_url":"https://avatars.githubusercontent.com/u/1591879?v=3","gravatar_id":"","url":"https://api.github.com/users/mjswensen","html_url":"https://github.com/mjswensen","followers_url":"https://api.github.com/users/mjswensen/followers","following_url":"https://api.github.com/users/mjswensen/following{/other_user}","gists_url":"https://api.github.com/users/mjswensen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjswensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjswensen/subscriptions","organizations_url":"https://api.github.com/users/mjswensen/orgs","repos_url":"https://api.github.com/users/mjswensen/repos","events_url":"https://api.github.com/users/mjswensen/events{/privacy}","received_events_url":"https://api.github.com/users/mjswensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-04T02:57:16Z","updated_at":"2015-03-04T03:03:53Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n1. Update atom-wordcount\r\n2. Close update pane.\r\n\r\nThe error also occurs when opening and closing the settings view, each time.\r\n\r\n**Atom Version**: 0.184.0\r\n**System**: Mac OS X 10.10.2\r\n**Thrown From**: [wordcount](https://github.com/nesQuick/atom-wordcount) package, v2.0.0\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'split' of undefined\r\n\r\n```\r\nAt /Users/mjs/.atom/packages/wordcount/lib/wordcount-view.coffee:5\r\n\r\nTypeError: Cannot read property 'split' of undefined\r\n  at WordcountView.module.exports.WordcountView.attachOrDestroy (/Users/mjs/.atom/packages/wordcount/lib/wordcount-view.coffee:5:3)\r\n  at status-bar.<anonymous> (/Users/mjs/.atom/packages/wordcount/lib/wordcount-view.coffee:1:1)\r\n  at status-bar.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:4430:9)\r\n  at status-bar.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:4116:28)\r\n  at /Applications/Atom.app/Contents/Resources/app/node_modules/status-bar/lib/status-bar-view.js:44:24\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/pane-container.js:347:34\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at Pane.module.exports.Pane.setActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:264:22)\r\n  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:328:21)\r\n  at Pane.module.exports.Pane.activateItemAtIndex (/Applications/Atom.app/Contents/Resources/app/src/pane.js:322:19)\r\n  at Pane.module.exports.Pane.activatePreviousItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:293:21)\r\n  at Pane.module.exports.Pane.removeItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:393:16)\r\n  at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:457:16)\r\n  at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:179:22)\r\n  at space-pen-ul.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:4430:9)\r\n  at space-pen-ul.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/jquery/dist/jquery.js:4116:28)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -5:18.2 editor:delete-to-beginning-of-line (atom-text-editor.editor.is-focused)\r\n     -5:17.9 core:backspace (atom-text-editor.editor.is-focused)\r\n  2x -5:17.4 core:move-down (atom-text-editor.editor.is-focused)\r\n     -5:16.9 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)\r\n     -5:16.7 snippets:next-tab-stop (atom-text-editor.editor.is-focused)\r\n     -5:16.7 snippets:expand (atom-text-editor.editor.is-focused)\r\n     -5:16.7 docblockr:parse-tab (atom-text-editor.editor.is-focused)\r\n     -5:16.7 editor:indent (atom-text-editor.editor.is-focused)\r\n     -5:16.2 editor:move-line-up (atom-text-editor.editor.is-focused)\r\n     -5:14.3 core:move-up (atom-text-editor.editor.is-focused)\r\n     -5:14.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)\r\n  3x -5:13.8 core:move-left (atom-text-editor.editor.is-focused)\r\n     -5:11.2 core:save (atom-text-editor.editor.is-focused)\r\n  2x -5:04.0 editor:delete-line (atom-text-editor.editor.is-focused)\r\n     -5:03.2 core:save (atom-text-editor.editor.is-focused)\r\n     -1:15.7 settings-view:check-for-package-updates (atom-workspace.workspace.scrollbars-visible-when-scrolling.theme-seti-syntax.theme-seti-ui)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"disabledPackages\": [\r\n      \"web-view\",\r\n      \"linter-scalac\",\r\n      \"minimap-git-diff\",\r\n      \"minimap-color-highlight\",\r\n      \"minimap\"\r\n    ],\r\n    \"themes\": [\r\n      \"seti-ui\",\r\n      \"seti-syntax\"\r\n    ],\r\n    \"destroyEmptyPanes\": false,\r\n    \"projectHome\": \"/Users/mjs/Projects\"\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\natom-beautify, v0.21.3\r\natom-browser-webview, v0.6.0\r\natom-color-highlight, v3.0.8\r\natom-spotify, v1.2.0\r\ndocblockr, v0.6.3\r\neditorconfig, v0.3.0\r\nemmet, v2.3.4\r\ngit-log, v0.3.0\r\nlanguage-scala, v1.1.0\r\nlanguage-swift, v0.3.0\r\nlinter, v0.12.0\r\npermute, v0.1.0\r\nproject-manager, v1.15.5\r\nproject-palette-finder, v2.4.16\r\nseti-syntax, v0.3.3\r\nseti-ui, v0.6.3\r\nsvg-preview, v0.5.1\r\ntasks, v1.3.0\r\nwordcount, v2.0.0\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nesQuick/atom-wordcount/issues/comments/77088959","html_url":"https://github.com/nesQuick/atom-wordcount/issues/25#issuecomment-77088959","issue_url":"https://api.github.com/repos/nesQuick/atom-wordcount/issues/25","id":77088959,"user":{"login":"mjswensen","id":1591879,"avatar_url":"https://avatars.githubusercontent.com/u/1591879?v=3","gravatar_id":"","url":"https://api.github.com/users/mjswensen","html_url":"https://github.com/mjswensen","followers_url":"https://api.github.com/users/mjswensen/followers","following_url":"https://api.github.com/users/mjswensen/following{/other_user}","gists_url":"https://api.github.com/users/mjswensen/gists{/gist_id}","starred_url":"https://api.github.com/users/mjswensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjswensen/subscriptions","organizations_url":"https://api.github.com/users/mjswensen/orgs","repos_url":"https://api.github.com/users/mjswensen/repos","events_url":"https://api.github.com/users/mjswensen/events{/privacy}","received_events_url":"https://api.github.com/users/mjswensen/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T03:03:53Z","updated_at":"2015-03-04T03:03:53Z","body":"Also happens when switching between panes."}}