{"action":"created","issue":{"url":"https://api.github.com/repos/chfritz/atom-sane-indentation/issues/1","repository_url":"https://api.github.com/repos/chfritz/atom-sane-indentation","labels_url":"https://api.github.com/repos/chfritz/atom-sane-indentation/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/chfritz/atom-sane-indentation/issues/1/comments","events_url":"https://api.github.com/repos/chfritz/atom-sane-indentation/issues/1/events","html_url":"https://github.com/chfritz/atom-sane-indentation/issues/1","id":143235371,"number":1,"title":"Uncaught TypeError: Cannot read property 'some' of undefined","user":{"login":"bnchndlr","id":1875146,"avatar_url":"https://avatars.githubusercontent.com/u/1875146?v=3","gravatar_id":"","url":"https://api.github.com/users/bnchndlr","html_url":"https://github.com/bnchndlr","followers_url":"https://api.github.com/users/bnchndlr/followers","following_url":"https://api.github.com/users/bnchndlr/following{/other_user}","gists_url":"https://api.github.com/users/bnchndlr/gists{/gist_id}","starred_url":"https://api.github.com/users/bnchndlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnchndlr/subscriptions","organizations_url":"https://api.github.com/users/bnchndlr/orgs","repos_url":"https://api.github.com/users/bnchndlr/repos","events_url":"https://api.github.com/users/bnchndlr/events{/privacy}","received_events_url":"https://api.github.com/users/bnchndlr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-24T12:47:50Z","updated_at":"2016-04-05T03:28:58Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. Opened up Atom with an empty doc\r\n2. Created New File\r\n3. Pasted in the following code (it's an regex for reddit)\r\n\r\n```\r\n~title (regex, full-exact): >-\r\n[a-zA-Z0-9 \\°\\”\\“\\™\\®\\²\\³\\^\\´\\`\\§\\!\\,\\.\\–\\~\\\\\\|\\@\\#\\$\\€\\£\\%\\^\\&\\*\\(\\)\\_\\\\+\\-\\=\\{\\}\\;\\'\\:\\\"\\/\\<\\>?\\[\\]]+\r\naction: spam\r\n```\r\n\r\n4. I wanted to indent/format the code a little nicer, so I clicked on the second line (starting at \"[a-z\" and pressed tab\r\n5. error is shown\r\n\r\n**Atom Version**: 1.6.0\r\n**System**: Mac OS X 10.11.4\r\n**Thrown From**: [sane-indentation](https://github.com/chfritz/atom-sane-indentation) package, v0.0.5\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught TypeError: Cannot read property 'some' of undefined\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:816\r\n\r\nTypeError: Cannot read property 'some' of undefined\r\n    at LanguageMode.suggestedIndentForTokenizedLineAtBufferRow (/Users/teamNOOB/.atom/packages/sane-indentation/lib/sane-indentation.js:106:23)\r\n    at LanguageMode.module.exports.LanguageMode.suggestedIndentForBufferRow (/Applications/Atom.app/Contents/Resources/app.asar/src/language-mode.js:288:19)\r\n    at TextEditor.module.exports.TextEditor.suggestedIndentForBufferRow (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:3091:32)\r\n    at Selection.module.exports.Selection.indent (/Applications/Atom.app/Contents/Resources/app.asar/src/selection.js:798:37)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2382:26\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:843:29\r\n    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:811:18)\r\n    at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1243:26)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:837:24\r\n    at TextEditor.module.exports.TextEditor.mergeSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2123:18)\r\n    at TextEditor.module.exports.TextEditor.mergeIntersectingSelections (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2085:35)\r\n    at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:835:19)\r\n    at TextEditor.module.exports.TextEditor.indent (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:2381:19)\r\n    at TextEditor.commandRegistry.add.stopEventPropagationAndGroupUndo.editor:indent (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:574:21)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:640:34\r\n    at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:811:18)\r\n    at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1243:26)\r\n    at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app.asar/src/register-default-commands.js:639:22)\r\n    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:260:29)\r\n    at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61\r\n    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:570:16)\r\n    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:378:22)\r\n    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:97:36)\r\n    at HTMLDocument.<anonymous> (/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     -0:18.9.0 snippets:expand (atom-text-editor.editor.is-focused)\r\n     -0:18.9.0 editor:indent (atom-text-editor.editor.is-focused)\r\n     -0:18.8.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)\r\n     -0:18.8.0 snippets:expand (atom-text-editor.editor.is-focused)\r\n     -0:18.8.0 editor:indent (atom-text-editor.editor.is-focused)\r\n     -0:18.6.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)\r\n     -0:18.6.0 snippets:expand (atom-text-editor.editor.is-focused)\r\n     -0:18.6.0 editor:indent (atom-text-editor.editor.is-focused)\r\n     -0:18.4.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)\r\n     -0:18.4.0 snippets:expand (atom-text-editor.editor.is-focused)\r\n     -0:18.4.0 editor:indent (atom-text-editor.editor.is-focused)\r\n  3x -0:10.9.0 core:close (atom-text-editor.editor.is-focused)\r\n     -0:03.2.0 core:paste (atom-text-editor.editor.is-focused)\r\n     -0:01.6.0 snippets:next-tab-stop (atom-text-editor.editor.is-focused)\r\n     -0:01.6.0 snippets:expand (atom-text-editor.editor.is-focused)\r\n     -0:01.6.0 editor:indent (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    \"audioBeep\": false,\r\n    \"disabledPackages\": [\r\n      \"css-clean\"\r\n    ],\r\n    \"projectHome\": \"/Users/teamNOOB/Sites\"\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\ncssnano, v1.1.0\r\npreview-plus, v1.2.6\r\nsane-indentation, v0.0.5\r\nyou-complete-me, v0.7.4\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/chfritz/atom-sane-indentation/issues/comments/205623948","html_url":"https://github.com/chfritz/atom-sane-indentation/issues/1#issuecomment-205623948","issue_url":"https://api.github.com/repos/chfritz/atom-sane-indentation/issues/1","id":205623948,"user":{"login":"bnchndlr","id":1875146,"avatar_url":"https://avatars.githubusercontent.com/u/1875146?v=3","gravatar_id":"","url":"https://api.github.com/users/bnchndlr","html_url":"https://github.com/bnchndlr","followers_url":"https://api.github.com/users/bnchndlr/followers","following_url":"https://api.github.com/users/bnchndlr/following{/other_user}","gists_url":"https://api.github.com/users/bnchndlr/gists{/gist_id}","starred_url":"https://api.github.com/users/bnchndlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnchndlr/subscriptions","organizations_url":"https://api.github.com/users/bnchndlr/orgs","repos_url":"https://api.github.com/users/bnchndlr/repos","events_url":"https://api.github.com/users/bnchndlr/events{/privacy}","received_events_url":"https://api.github.com/users/bnchndlr/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T03:28:58Z","updated_at":"2016-04-05T03:28:58Z","body":"No problems! It works! Congrats :)"}}