{"action":"created","issue":{"url":"https://api.github.com/repos/smashwilson/merge-conflicts/issues/126","labels_url":"https://api.github.com/repos/smashwilson/merge-conflicts/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/smashwilson/merge-conflicts/issues/126/comments","events_url":"https://api.github.com/repos/smashwilson/merge-conflicts/issues/126/events","html_url":"https://github.com/smashwilson/merge-conflicts/issues/126","id":57397204,"number":126,"title":"Uncaught Error: This TextEditor has been destroyed","user":{"login":"akilhoffer","id":110708,"avatar_url":"https://avatars.githubusercontent.com/u/110708?v=3","gravatar_id":"","url":"https://api.github.com/users/akilhoffer","html_url":"https://github.com/akilhoffer","followers_url":"https://api.github.com/users/akilhoffer/followers","following_url":"https://api.github.com/users/akilhoffer/following{/other_user}","gists_url":"https://api.github.com/users/akilhoffer/gists{/gist_id}","starred_url":"https://api.github.com/users/akilhoffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akilhoffer/subscriptions","organizations_url":"https://api.github.com/users/akilhoffer/orgs","repos_url":"https://api.github.com/users/akilhoffer/repos","events_url":"https://api.github.com/users/akilhoffer/events{/privacy}","received_events_url":"https://api.github.com/users/akilhoffer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/smashwilson/merge-conflicts/labels/boom","name":"boom","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/smashwilson/merge-conflicts/milestones/6","html_url":"https://github.com/smashwilson/merge-conflicts/milestones/Hackday%20the%20Next","labels_url":"https://api.github.com/repos/smashwilson/merge-conflicts/milestones/6/labels","id":1151104,"number":6,"title":"Hackday the Next","description":"Issues to have a look at the next time I spend a day hacking on this.","creator":{"login":"smashwilson","id":17565,"avatar_url":"https://avatars.githubusercontent.com/u/17565?v=3","gravatar_id":"","url":"https://api.github.com/users/smashwilson","html_url":"https://github.com/smashwilson","followers_url":"https://api.github.com/users/smashwilson/followers","following_url":"https://api.github.com/users/smashwilson/following{/other_user}","gists_url":"https://api.github.com/users/smashwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/smashwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashwilson/subscriptions","organizations_url":"https://api.github.com/users/smashwilson/orgs","repos_url":"https://api.github.com/users/smashwilson/repos","events_url":"https://api.github.com/users/smashwilson/events{/privacy}","received_events_url":"https://api.github.com/users/smashwilson/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2015-06-05T13:04:54Z","updated_at":"2015-07-22T06:50:20Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-02-11T23:59:38Z","updated_at":"2015-07-22T06:50:20Z","closed_at":"2015-07-22T06:50:20Z","body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 0.178.0\r\n**System**: Mac OS X 10.10.2\r\n**Thrown From**: [merge-conflicts](https://github.com/smashwilson/merge-conflicts) package, v1.2.10\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: This TextEditor has been destroyed\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1007\r\n\r\nError: This TextEditor has been destroyed\r\n  at DisplayBuffer.module.exports.DisplayBuffer.screenPositionForBufferPosition (/Applications/Atom.app/Contents/Resources/app/src/display-buffer.js:1007:15)\r\n  at Marker.module.exports.Marker.getTailScreenPosition (/Applications/Atom.app/Contents/Resources/app/src/marker.js:230:33)\r\n  at TextEditorPresenter.module.exports.TextEditorPresenter.updateOverlaysState (/Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:309:51)\r\n  at TextEditorPresenter.module.exports.TextEditorPresenter.didDestroyDecoration (/Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:944:21)\r\n  at /Applications/Atom.app/Contents/Resources/app/src/text-editor-presenter.js:891: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 Decoration.module.exports.Decoration.destroy (/Applications/Atom.app/Contents/Resources/app/src/decoration.js:59:20)\r\n  at SideView.CoveringView.cleanup (/Users/Anthony/.atom/packages/merge-conflicts/lib/covering-view.coffee:31:15)\r\n  at SideView.module.exports.SideView.cleanup (/Users/Anthony/.atom/packages/merge-conflicts/lib/side-view.coffee:37:5)\r\n  at /Users/Anthony/.atom/packages/merge-conflicts/lib/covering-view.coffee:15:45\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 TextEditor.module.exports.TextEditor.destroyed (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:270:27)\r\n  at TextEditor.module.exports.Model.destroy (/Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:218:14)\r\n  at Pane.module.exports.Pane.destroyItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:459:18)\r\n  at TabBarView.module.exports.TabBarView.closeTab (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:285:24)\r\n  at TabBarView.module.exports.TabBarView.closeAllTabs (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:360:28)\r\n  at space-pen-ul.subscriptions.add.atom.commands.add.tabs:close-all-tabs (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:67:26)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)\r\n  at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61)\r\n  at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:156:19)\r\n  at [object Object].jQuery.fn.trigger (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:64:23)\r\n  at EventEmitter.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:70:67)\r\n  at EventEmitter.emit (events.js:119:17)\r\n  at EventEmitter.ipc.sendSync (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/ipc.js:21:31)\r\n  at BrowserWindow.RemoteMemberFunction [as emit] (/Applications/Atom.app/Contents/Resources/atom/renderer/api/lib/remote.js:110:29)\r\n  at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (/Applications/Atom.app/Contents/Resources/app/src/context-menu-manager.js:169:33)\r\n  at HTMLDocument.<anonymous> (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:143:33)\r\n  at HTMLDocument.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:112:34)\r\n  at HTMLDocument.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)\r\n  at HTMLDocument.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n     -5:55.4 core:copy (atom-text-editor.editor)\r\n     -5:40.1 core:paste (atom-text-editor.editor.autocomplete-active)\r\n     -5:37.8 core:save (atom-text-editor.editor.autocomplete-active)\r\n  2x -4:28.9 editor:select-to-first-character-of-line (atom-text-editor.editor.autocomplete-active)\r\n  2x -4:28.2 core:backspace (atom-text-editor.editor.autocomplete-active)\r\n  7x -4:27.4 core:move-up (atom-text-editor.editor.autocomplete-active)\r\n  6x -4:25.7 core:select-up (atom-text-editor.editor.autocomplete-active)\r\n     -4:16.9 editor:select-to-first-character-of-line (atom-text-editor.editor.autocomplete-active)\r\n     -3:46.7 merge-conflicts:detect (atom-text-editor.editor.autocomplete-active)\r\n     -3:41.0 core:undo (atom-text-editor.editor.autocomplete-active)\r\n     -3:37.9 core:save (atom-text-editor.editor.autocomplete-active)\r\n     -3:13.1 merge-conflicts:detect (atom-text-editor.editor.autocomplete-active)\r\n     -2:11.1 core:save (atom-text-editor.editor.autocomplete-active)\r\n```\r\n\r\n### Config\r\n\r\n```json\r\n{\r\n  \"core\": {\r\n    \"themes\": [\r\n      \"atom-dark-ui\",\r\n      \"ruby-blue-syntax\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nangularjs, v0.2.0\r\natom-beautify, v0.21.3\r\nautocomplete-plus, v2.1.5\r\ncolor-picker, v1.4.4\r\njshint, v1.2.0\r\nlanguage-typescript, v0.15.0\r\nmerge-conflicts, v1.2.10\r\nminimap, v4.1.4\r\nproject-manager, v1.15.5\r\nruby-blue-syntax, v0.1.13\r\nterminal-panel, v1.9.2\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/smashwilson/merge-conflicts/issues/comments/123580708","html_url":"https://github.com/smashwilson/merge-conflicts/issues/126#issuecomment-123580708","issue_url":"https://api.github.com/repos/smashwilson/merge-conflicts/issues/126","id":123580708,"user":{"login":"smashwilson","id":17565,"avatar_url":"https://avatars.githubusercontent.com/u/17565?v=3","gravatar_id":"","url":"https://api.github.com/users/smashwilson","html_url":"https://github.com/smashwilson","followers_url":"https://api.github.com/users/smashwilson/followers","following_url":"https://api.github.com/users/smashwilson/following{/other_user}","gists_url":"https://api.github.com/users/smashwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/smashwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashwilson/subscriptions","organizations_url":"https://api.github.com/users/smashwilson/orgs","repos_url":"https://api.github.com/users/smashwilson/repos","events_url":"https://api.github.com/users/smashwilson/events{/privacy}","received_events_url":"https://api.github.com/users/smashwilson/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T06:50:19Z","updated_at":"2015-07-22T06:50:19Z","body":"On closer inspection, this looks like a lifecycle problem with overlay decorations that's since been fixed. [`Decoration.destroy`](https://github.com/atom/atom/blob/master/src/decoration.coffee#L81) now checks for duplicate destruction, which it looks like the problem was here.\r\n\r\nIf you can replicate on v1.3.4 and a recent Atom, let me know :smile:"}}