{"action":"opened","issue":{"url":"https://api.github.com/repos/lee-dohm/tabs-to-spaces/issues/23","labels_url":"https://api.github.com/repos/lee-dohm/tabs-to-spaces/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/lee-dohm/tabs-to-spaces/issues/23/comments","events_url":"https://api.github.com/repos/lee-dohm/tabs-to-spaces/issues/23/events","html_url":"https://github.com/lee-dohm/tabs-to-spaces/issues/23","id":58309624,"number":23,"title":"Uncaught TypeError: Cannot read property 'text' of undefined","user":{"login":"mMerlin","id":918823,"avatar_url":"https://avatars.githubusercontent.com/u/918823?v=3","gravatar_id":"","url":"https://api.github.com/users/mMerlin","html_url":"https://github.com/mMerlin","followers_url":"https://api.github.com/users/mMerlin/followers","following_url":"https://api.github.com/users/mMerlin/following{/other_user}","gists_url":"https://api.github.com/users/mMerlin/gists{/gist_id}","starred_url":"https://api.github.com/users/mMerlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mMerlin/subscriptions","organizations_url":"https://api.github.com/users/mMerlin/orgs","repos_url":"https://api.github.com/users/mMerlin/repos","events_url":"https://api.github.com/users/mMerlin/events{/privacy}","received_events_url":"https://api.github.com/users/mMerlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-20T04:41:25Z","updated_at":"2015-02-20T04:41:25Z","closed_at":null,"body":"This seems to be related to another atom reported problem when using tab splitting.  The split seems to work, but after closing a split, various operation on same file in the 'main' tab start failing.  At a high level, it looks to me like some of the structures / pointers for the file in another tab were deleted when the split was closed.\r\n\r\nRemembered sequence: Slit a tab to get same file in 2 views; do stuff; save changes (operation very slow); close tab; do stuff; save; fail\r\n\r\nStack trace:\r\nTypeError: Cannot read property 'text' of undefined\r\n  at DisplayBuffer.module.exports.DisplayBuffer.buildScreenLines (/opt/atom/share/atom/resources/app/src/display-buffer.js:1510:70)\r\n  at DisplayBuffer.module.exports.DisplayBuffer.updateScreenLines (/opt/atom/share/atom/resources/app/src/display-buffer.js:1464:20)\r\n  at DisplayBuffer.module.exports.DisplayBuffer.handleTokenizedBufferChange (/opt/atom/share/atom/resources/app/src/display-buffer.js:1444:12)\r\n  at /opt/atom/share/atom/resources/app/src/display-buffer.js:5:61\r\n  at Emitter.module.exports.Emitter.emit (/opt/atom/share/atom/resources/app/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TokenizedBuffer.module.exports.TokenizedBuffer.handleBufferChange (/opt/atom/share/atom/resources/app/src/tokenized-buffer.js:355:27)\r\n  at /opt/atom/share/atom/resources/app/src/tokenized-buffer.js:56:24\r\n  at Emitter.module.exports.Emitter.emit (/opt/atom/share/atom/resources/app/node_modules/service-hub/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TextBuffer.module.exports.TextBuffer.applyPatch (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:594:20)\r\n  at BufferPatch.module.exports.BufferPatch.applyTo (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21)\r\n  at Transaction.module.exports.Transaction.applyTo (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/transaction.js:60:29)\r\n  at History.module.exports.History.abortTransaction (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/history.js:165:24)\r\n  at History.module.exports.History.transact (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/history.js:122:16)\r\n  at TextBuffer.module.exports.TextBuffer.transact (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:687:27)\r\n  at TabsToSpaces.module.exports.TabsToSpaces.replaceWhitespaceWithSpaces (/home/phil/.atom/packages/tabs-to-spaces/lib/tabs-to-spaces.coffee:50:12)\r\n  at TabsToSpaces.module.exports.TabsToSpaces.untabify (/home/phil/.atom/packages/tabs-to-spaces/lib/tabs-to-spaces.coffee:19:6)\r\n  at /home/phil/.atom/packages/tabs-to-spaces/lib/index.coffee:39:24\r\n  at Emitter.module.exports.Emitter.emit (/opt/atom/share/atom/resources/app/node_modules/service-hub/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at TextBuffer.module.exports.TextBuffer.saveAs (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:965:20)\r\n  at TextBuffer.module.exports.TextBuffer.save (/opt/atom/share/atom/resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)\r\n  at TextEditor.module.exports.TextEditor.save (/opt/atom/share/atom/resources/app/src/text-editor.js:620:26)\r\n  at Pane.module.exports.Pane.saveItem (/opt/atom/share/atom/resources/app/src/pane.js:538:16)\r\n  at Pane.module.exports.Pane.saveActiveItem (/opt/atom/share/atom/resources/app/src/pane.js:522:19)\r\n  at Workspace.module.exports.Workspace.saveActivePaneItemAndReportErrors (/opt/atom/share/atom/resources/app/src/workspace.js:689:44)\r\n  at Workspace.module.exports.Workspace.saveActivePaneItem (/opt/atom/share/atom/resources/app/src/workspace.js:679:19)\r\n  at atom-workspace.atom.commands.add.core:save (/opt/atom/share/atom/resources/app/src/workspace-element.js:295:30)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/atom/share/atom/resources/app/src/command-registry.js:243:29)\r\n  at /opt/atom/share/atom/resources/app/src/command-registry.js:3:61\r\n  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/opt/atom/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)\r\n  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/opt/atom/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)\r\n  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/opt/atom/share/atom/resources/app/src/window-event-handler.js:170:20)"}}