{"action":"created","issue":{"url":"https://api.github.com/repos/martinruenz/atom-ctrl-last-tab/issues/5","labels_url":"https://api.github.com/repos/martinruenz/atom-ctrl-last-tab/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/martinruenz/atom-ctrl-last-tab/issues/5/comments","events_url":"https://api.github.com/repos/martinruenz/atom-ctrl-last-tab/issues/5/events","html_url":"https://github.com/martinruenz/atom-ctrl-last-tab/issues/5","id":96312637,"number":5,"title":"Uncaught Error: The workspace can only contain one instance of item [object Object]","user":{"login":"admdh","id":4650029,"avatar_url":"https://avatars.githubusercontent.com/u/4650029?v=3","gravatar_id":"","url":"https://api.github.com/users/admdh","html_url":"https://github.com/admdh","followers_url":"https://api.github.com/users/admdh/followers","following_url":"https://api.github.com/users/admdh/following{/other_user}","gists_url":"https://api.github.com/users/admdh/gists{/gist_id}","starred_url":"https://api.github.com/users/admdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/admdh/subscriptions","organizations_url":"https://api.github.com/users/admdh/orgs","repos_url":"https://api.github.com/users/admdh/repos","events_url":"https://api.github.com/users/admdh/events{/privacy}","received_events_url":"https://api.github.com/users/admdh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T13:17:57Z","updated_at":"2015-08-27T12:36:19Z","closed_at":null,"body":"[Enter steps to reproduce below:]\r\n\r\n1. ...\r\n2. ...\r\n\r\n**Atom Version**: 1.0.2\r\n**System**: Mac OS X 10.11\r\n**Thrown From**: [ctrl-last-tab](https://github.com/martinruenz/atom-ctrl-last-tab) package, v0.2.0\r\n\r\n\r\n### Stack Trace\r\n\r\nUncaught Error: The workspace can only contain one instance of item [object Object]\r\n\r\n```\r\nAt /Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11\r\n\r\nError: The workspace can only contain one instance of item [object Object]\r\n  at ItemRegistry.module.exports.ItemRegistry.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11:15)\r\n  at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:374:25)\r\n  at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:362:26\r\n  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)\r\n  at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:333:20)\r\n  at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:301:14)\r\n  at Object.module.exports.next (/Users/admdh/.atom/packages/ctrl-last-tab/lib/ctrl-last-tab.coffee:60:10)\r\n  at atom-workspace.subscriptions.add.atom.commands.add.ctrl-last-tab:next (/Users/admdh/.atom/packages/ctrl-last-tab/lib/ctrl-last-tab.coffee:25:10)\r\n  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:241: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:520:16)\r\n  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:355:22)\r\n  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:177:20)\r\n\r\n```\r\n\r\n### Commands\r\n\r\n```\r\n  2x -4:18.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -2:00.4.0 core:select-all (atom-text-editor.editor.mini.is-focused)\r\n     -1:57.4.0 core:confirm (atom-text-editor.editor.mini.is-focused)\r\n     -0:19.9.0 core:backspace (atom-text-editor#editor.invisibles.tab.editor.mini.is-focused)\r\n     -0:13.2.0 core:select-all (atom-text-editor.editor.is-focused)\r\n  2x -0:10.5.0 core:move-up (atom-text-editor.editor.is-focused)\r\n     -0:09.7.0 core:move-down (atom-text-editor.editor.is-focused)\r\n     -0:09.7.0 core:move-right (atom-text-editor.editor.is-focused)\r\n     -0:09.3.0 core:move-left (atom-text-editor.editor.is-focused)\r\n  2x -0:09.3.0 core:move-down (atom-text-editor.editor.is-focused)\r\n     -0:08.5.0 core:move-up (atom-text-editor.editor.is-focused)\r\n     -0:07.8.0 core:select-all (atom-text-editor.editor.is-focused)\r\n     -0:06.6.0 core:backspace (atom-text-editor.editor.is-focused)\r\n     -0:06.2.0 emmet:expand-abbreviation-with-tab (atom-text-editor.editor.is-focused)\r\n     -0:04.6.0 core:save (atom-text-editor.editor.is-focused)\r\n  3x -0:02.6.0 ctrl-last-tab:next (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    \"themes\": [\r\n      \"spacegray-dark-neue-ui\",\r\n      \"spacegray-dark-neue-syntax\"\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\n### Installed Packages\r\n\r\n```coffee\r\n# User\r\nctrl-last-tab, v0.2.0\r\nemmet, v2.3.12\r\nminimap, v4.12.0\r\nproject-manager, v1.15.11\r\nspacegray-dark-neue-syntax, v1.1.6\r\nspacegray-dark-neue-ui, v1.3.1\r\n\r\n# Dev\r\nNo dev packages\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/martinruenz/atom-ctrl-last-tab/issues/comments/135408824","html_url":"https://github.com/martinruenz/atom-ctrl-last-tab/issues/5#issuecomment-135408824","issue_url":"https://api.github.com/repos/martinruenz/atom-ctrl-last-tab/issues/5","id":135408824,"user":{"login":"ronjouch","id":522085,"avatar_url":"https://avatars.githubusercontent.com/u/522085?v=3","gravatar_id":"","url":"https://api.github.com/users/ronjouch","html_url":"https://github.com/ronjouch","followers_url":"https://api.github.com/users/ronjouch/followers","following_url":"https://api.github.com/users/ronjouch/following{/other_user}","gists_url":"https://api.github.com/users/ronjouch/gists{/gist_id}","starred_url":"https://api.github.com/users/ronjouch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronjouch/subscriptions","organizations_url":"https://api.github.com/users/ronjouch/orgs","repos_url":"https://api.github.com/users/ronjouch/repos","events_url":"https://api.github.com/users/ronjouch/events{/privacy}","received_events_url":"https://api.github.com/users/ronjouch/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T12:36:19Z","updated_at":"2015-08-27T12:36:19Z","body":"> This appears to happen when working in split screen mode, and the last tab was on the other pane when issuing ctrl-last-tab:next.\r\n\r\nConfirmed. Steps to reproduce:\r\n\r\n1. Set `Settings → find-and-replace → \"Open project find results in Right Pane\"`\r\n2. Make a search; it will appear in the right pane and right pane will be focused\r\n3. Press `ctrl-tab`\r\n\r\n**Expected**: switch back to initial file\r\n**Actual**: this exception"}}