You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Uncaught Error: The workspace can only contain one instance of item [object Object] #234
At this point you get the error and the project in the tree view disappears - you need to clear saved state to use the project again.
Updated packages and opened my latest project file .jsx.
Atom Version: 1.1.0 System: Mac OS X 10.11.1 Thrown From: tabs package, v0.84.0
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
At /Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11
Error: The workspace can only contain one instance of item [object Object]
at ItemRegistry.module.exports.ItemRegistry.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11:15)
at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:374:25)
at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:359:28
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:339:20)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:310:14)
at tabs-tab.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:210:24)
at space-pen-ul.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
at space-pen-ul.elemData.handle (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)
I have preview tabs on and had a buffer open that I told Atom not to save before it restarted to apply a version upgrade.
Atom Version: 1.2.4 System: Mac OS X 10.11.1 Thrown From: tabs package, v0.88.0
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
At /Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11
Error: The workspace can only contain one instance of item [object Object]
at ItemRegistry.module.exports.ItemRegistry.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11:15)
at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:374:25)
at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:359:28
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:86:11)
at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:340:20)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:311:14)
at atom-tabs.TabBarView.onMouseDown (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:670:19)
I get this error repeatedly, usually after doing a search in files and the closing the results with cmd-w. I also noticed once that the tab order was wonky - alt-2 and alt-3 went to the wrong tabs, like they had gotten reversed.
Atom Version: 1.4.3 System: Mac OS X 10.11.3 Thrown From: tabs package, v0.88.0
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
At /Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11
Error: The workspace can only contain one instance of item [object Object]
at ItemRegistry.module.exports.ItemRegistry.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/item-registry.js:11:15)
at PaneContainer.module.exports.PaneContainer.addedPaneItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:374:25)
at /Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:359:28
at Function.module.exports.Emitter.simpleDispatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:125:28)
at Pane.module.exports.Pane.addItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:344:20)
at Pane.module.exports.Pane.activateItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:315:14)
at atom-tabs.TabBarView.onMouseDown (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/tabs/lib/tab-bar-view.js:670:19)
Atom: 1.17.0-beta4 x64 Electron: 1.3.15 OS: Microsoft Windows 10 Enterprise Thrown From: tabs package 0.105.4
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
At C:\Users\Landon Abney\AppData\Local\atom\app-1.17.0-beta4\resources\app\src\item-registry.js:11
Error: The workspace can only contain one instance of item [object Object]
at ItemRegistry.module.exports.ItemRegistry.addItem (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/item-registry.js:11:1)
at PaneContainer.didAddPaneItem (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane-container.js:265:1)
at PaneContainer.didAddPane (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane-container.js:238:1)
at Pane.module.exports.Pane.setContainer (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane.js:149:1)
at PaneAxis.module.exports.PaneAxis.addChild (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane-axis.js:154:1)
at PaneAxis.module.exports.PaneAxis.insertChildAfter (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane-axis.js:225:1)
at Pane.module.exports.Pane.split (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane.js:968:1)
at Pane.module.exports.Pane.splitRight (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/pane.js:928:1)
at TabBarView.module.exports.TabBarView.splitTab (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/node_modules/tabs/lib/tab-bar-view.js:378:1)
at Object.TabBarView.addElementCommands.tabs:split-right (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/node_modules/tabs/lib/tab-bar-view.js:136:1)
at HTMLUListElement.commandsWithPropagationStopped.(anonymous function) (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/node_modules/tabs/lib/tab-bar-view.js:82:1)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/command-registry.js:265:1)
at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/command-registry.js:3:1)
at CommandRegistry.module.exports.CommandRegistry.dispatch (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/command-registry.js:166:1)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/atom-environment.js:1292:1)
at EventEmitter.outerCallback (~/AppData/Local/atom/app-1.17.0-beta4/resources/app/src/application-delegate.js:347:1)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
Commands
2x -0:47.6.0 tabs:split-right (div.title)
Non-Core Packages
Note: Also tested with Atom v1.16.0 x64 with the same result.
Reported it here since that's where Atom said it was thrown from, from the previous reports in this thread it seems like there are many different ways this can be triggered I just reported one way to reliably reproduce it 😉.
Error: The workspace can only contain one instance of item [object Object]
at ItemRegistry.module.exports.ItemRegistry.addItem (/Applications/Atom.app/Contents/Resources/app/src/item-registry.js:11:1)
at PaneContainer.didAddPaneItem (/Applications/Atom.app/Contents/Resources/app/src/pane-container.js:265:1)
at PaneContainer.didAddPane (/Applications/Atom.app/Contents/Resources/app/src/pane-container.js:238:1)
at Pane.module.exports.Pane.setContainer (/Applications/Atom.app/Contents/Resources/app/src/pane.js:149:1)
at PaneAxis.module.exports.PaneAxis.addChild (/Applications/Atom.app/Contents/Resources/app/src/pane-axis.js:154:1)
at PaneAxis.module.exports.PaneAxis.insertChildAfter (/Applications/Atom.app/Contents/Resources/app/src/pane-axis.js:225:1)
at Pane.module.exports.Pane.split (/Applications/Atom.app/Contents/Resources/app/src/pane.js:968:1)
at Pane.module.exports.Pane.splitRight (/Applications/Atom.app/Contents/Resources/app/src/pane.js:928:1)
at TabBarView.module.exports.TabBarView.splitTab (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:378:1)
at Object.TabBarView.addElementCommands.tabs:split-right (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:136:1)
at HTMLUListElement.commandsWithPropagationStopped.(anonymous function) (/Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:82:1)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:265:1)
at CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:1)
at CommandRegistry.module.exports.CommandRegistry.dispatch (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:166:1)
at AtomEnvironment.module.exports.AtomEnvironment.dispatchContextMenuCommand (/Applications/Atom.app/Contents/Resources/app/src/atom-environment.js:1292:1)
at EventEmitter.outerCallback (/Applications/Atom.app/Contents/Resources/app/src/application-delegate.js:347:1)
at emitThree (events.js:116:13)
at EventEmitter.emit (events.js:194:7)
I got this today on El Capitan OSX, by accidentally double clicking on my project's tab in the left side bar.
Activity
breiter commentedon Nov 24, 2015
I have preview tabs on and had a buffer open that I told Atom not to save before it restarted to apply a version upgrade.
Atom Version: 1.2.4
System: Mac OS X 10.11.1
Thrown From: tabs package, v0.88.0
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
Commands
Config
{ "core": { "disabledPackages": [ "metrics", "wrap-guide", "sync-settings" ], "themes": [ "one-dark-ui", "zenburn" ] }, "tabs": { "usePreviewTabs": true } }Installed Packages
adamreisnz commentedon Dec 31, 2015
Got this error when I re-opened a project window (through project-manager) that had crashed.
dgm commentedon Jan 12, 2016
I get this error repeatedly, usually after doing a search in files and the closing the results with cmd-w. I also noticed once that the tab order was wonky - alt-2 and alt-3 went to the wrong tabs, like they had gotten reversed.
magic890 commentedon Feb 4, 2016
Atom Version: 1.4.3
System: Mac OS X 10.11.3
Thrown From: tabs package, v0.88.0
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
Config
{ "core": { "disabledPackages": [ "git-log", "console-log", "language-log" ] }, "tabs": { "enableVcsColoring": true, "usePreviewTabs": true } }Installed Packages
Arcanemagus commentedon May 3, 2017
[Enter steps to reproduce:]
Atom: 1.17.0-beta4 x64
Electron: 1.3.15
OS: Microsoft Windows 10 Enterprise
Thrown From: tabs package 0.105.4
Stack Trace
Uncaught Error: The workspace can only contain one instance of item [object Object]
Commands
Non-Core Packages
Note: Also tested with Atom v1.16.0 x64 with the same result.
rsese commentedon May 5, 2017
I can reproduce with @Arcanemagus' steps 👍
winstliu commentedon May 6, 2017
@Arcanemagus that bug already has an issue at atom/about#30.
Arcanemagus commentedon May 7, 2017
Reported it here since that's where Atom said it was thrown from, from the previous reports in this thread it seems like there are many different ways this can be triggered I just reported one way to reliably reproduce it 😉.
alice-em commentedon May 23, 2017
I got this today on
El CapitanOSX, by accidentally double clicking on my project's tab in the left side bar.luismqueral commentedon May 26, 2017
+1 I got this today, thanks for the succinct reproduction steps @Arcanemagus 😎
tizmagik commentedon May 30, 2017
I just got this today as well. Is there a known workaround?
ava-cassiopeia commentedon Jun 5, 2017
Also got this. Seems to persist between uninstalling Atom and reinstalling Atom.
ava-cassiopeia commentedon Jun 5, 2017
Actually, running the following will fix the issue (but will obviously clear anything Atom was storing about your project):
Neonit commentedon Jun 6, 2017
Actually this is very easy to reproduce. Just split the Project tab (tested with down, may work with other directions as well).
albertbuchard commentedon Jun 24, 2017
persists whatever I do: restart, reinstall, clear window state...
mac osx sierra 10.12.5
atom 1.18
EDIT:
After reinstall, I had to do three times in a row:
atom --clear-window-state