{"action":"created","issue":{"url":"https://api.github.com/repos/orktes/atom-react/issues/20","labels_url":"https://api.github.com/repos/orktes/atom-react/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/orktes/atom-react/issues/20/comments","events_url":"https://api.github.com/repos/orktes/atom-react/issues/20/events","html_url":"https://github.com/orktes/atom-react/issues/20","id":54444126,"number":20,"title":"Crash on text entry with 0.8.5","user":{"login":"clloyd","id":551573,"avatar_url":"https://avatars.githubusercontent.com/u/551573?v=3","gravatar_id":"","url":"https://api.github.com/users/clloyd","html_url":"https://github.com/clloyd","followers_url":"https://api.github.com/users/clloyd/followers","following_url":"https://api.github.com/users/clloyd/following{/other_user}","gists_url":"https://api.github.com/users/clloyd/gists{/gist_id}","starred_url":"https://api.github.com/users/clloyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clloyd/subscriptions","organizations_url":"https://api.github.com/users/clloyd/orgs","repos_url":"https://api.github.com/users/clloyd/repos","events_url":"https://api.github.com/users/clloyd/events{/privacy}","received_events_url":"https://api.github.com/users/clloyd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-15T12:32:17Z","updated_at":"2015-01-15T13:03:46Z","closed_at":null,"body":"Current affecting all my JSX files. Typing or pasting gives the following error:\r\n\r\nUncaught TypeError: Cannot read property 'testSync' of undefined\r\n/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:124\r\nHide Stack Trace\r\nTypeError: Cannot read property 'testSync' of undefined\r\n  at LanguageMode.editor.languageMode.suggestedIndentForBufferRow (/Users/chris/.atom/packages/react/index.coffee:63:35)\r\n  at LanguageMode.module.exports.LanguageMode.autoIndentBufferRow (/Applications/Atom.app/Contents/Resources/app/src/language-mode.js:374:26)\r\n  at TextEditor._results.push._this.(anonymous function) [as autoIndentBufferRow] (/Applications/Atom.app/Contents/Resources/app/node_modules/delegato/lib/delegator.js:67:61)\r\n  at Selection.module.exports.Selection.insertText (/Applications/Atom.app/Contents/Resources/app/src/selection.js:472:21)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:770:31\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor.js:809:27\r\n  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)\r\n  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)\r\n  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1178:26)\r\n  at TextEditor.module.exports.TextEditor.mutateSelectedText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:802:19)\r\n  at TextEditor.module.exports.TextEditor.insertText (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:767:21)\r\n  at TextEditor.object.(anonymous function) [as insertText] (/Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/lib/underscore-plus.js:77:27)\r\n  at TextEditor.module.exports.TextEditor.insertNewline (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:786:19)\r\n  at TextEditor.object.(anonymous function) [as insertNewline] (/Applications/Atom.app/Contents/Resources/app/node_modules/underscore-plus/lib/underscore-plus.js:77:27)\r\n  at TextEditor.atom.commands.add.stopEventPropagationAndGroupUndo.editor:newline (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:582:19)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:297:34\r\n  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:115:18)\r\n  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)\r\n  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:1178:26)\r\n  at atom-text-editor.newCommandListeners.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/src/text-editor-element.js:296:22)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61\r\n  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)\r\n  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)\r\n  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)\r\n\r\nDisabling the React package fixes the issue."},"comment":{"url":"https://api.github.com/repos/orktes/atom-react/issues/comments/70082478","html_url":"https://github.com/orktes/atom-react/issues/20#issuecomment-70082478","issue_url":"https://api.github.com/repos/orktes/atom-react/issues/20","id":70082478,"user":{"login":"Calyhre","id":3692274,"avatar_url":"https://avatars.githubusercontent.com/u/3692274?v=3","gravatar_id":"","url":"https://api.github.com/users/Calyhre","html_url":"https://github.com/Calyhre","followers_url":"https://api.github.com/users/Calyhre/followers","following_url":"https://api.github.com/users/Calyhre/following{/other_user}","gists_url":"https://api.github.com/users/Calyhre/gists{/gist_id}","starred_url":"https://api.github.com/users/Calyhre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Calyhre/subscriptions","organizations_url":"https://api.github.com/users/Calyhre/orgs","repos_url":"https://api.github.com/users/Calyhre/repos","events_url":"https://api.github.com/users/Calyhre/events{/privacy}","received_events_url":"https://api.github.com/users/Calyhre/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T13:03:46Z","updated_at":"2015-01-15T13:03:46Z","body":"Same here with `0.8.4` and latest Atom `0.172.0`.\r\nUpdating to `0.8.5` did not help."}}