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.
Settings view throws an exception if opened in a different pane from where it is already open #723
changed the title [-]Clicking "n update(s)" text in status bar has no effect if Settings is open in multiple tabs[/-][+]Clicking "n update(s)" text in status bar has no effect if Settings is open in multiple tabs, or in a pane that doesn't have focus[/+]on Jan 23, 2016
changed the title [-]Clicking "n update(s)" text in status bar has no effect if Settings is open in multiple tabs, or in a pane that doesn't have focus[/-][+]Clicking "n update(s)" text in status bar has no effect if Settings is already open in certain situations[/+]on Jan 23, 2016
changed the title [-]Clicking "n update(s)" text in status bar has no effect if Settings is already open in certain situations[/-][+]Settings view throws an exception if opened in a different pane from where it is already open[/+]on Dec 29, 2016
Activity
WalterGR commentedon Jan 19, 2016
Here's another instance of incorrect behavior, which I think is probably due to the same bug.
Repro:
Expected:
"n update(s)" and the icon disappear. One of the Settings tabs is switched to and the "Updates" section displayed.
Actual:
"n update(s)" and the icon disappear. Nothing else visibly happens. But Atom has opened Settings: in the active pane, behind the current tab.
Screen recording showing this behavior:
Unfortunately the GIF is pretty fast. This is what it shows:
pane:show-next-itemandpane:show-previous-item.[-]Clicking "n update(s)" text in status bar has no effect if Settings is open in multiple tabs[/-][+]Clicking "n update(s)" text in status bar has no effect if Settings is open in multiple tabs, or in a pane that doesn't have focus[/+]WalterGR commentedon Jan 23, 2016
(Updating title to account for my "Here's another instance of incorrect behavior" comment above.)
[-]Clicking "n update(s)" text in status bar has no effect if Settings is open in multiple tabs, or in a pane that doesn't have focus[/-][+]Clicking "n update(s)" text in status bar has no effect if Settings is already open in certain situations[/+]Ben3eeE commentedon Aug 9, 2016
I'm pretty sure this issue describes the same thing as atom/atom#11199, just that this has a different way of opening the settings view.
[-]Clicking "n update(s)" text in status bar has no effect if Settings is already open in certain situations[/-][+]Settings view throws an exception if opened in a different pane from where it is already open[/+]winstliu commentedon Jan 3, 2018
Here's the current behavior. Exception still shows up in console. Pretty odd.

t9md commentedon Jan 24, 2018
I was investigating this.
Now I'm clear why this happens.
Trying to send PR after think a bit more.
To make explanation clear, I will
setting-viewas SVatom://config) directly instead of saying "invokesettings-view:opensettings-view:openinvokeatom.workspace.open("atom://config")settings-view:coreinvokeatom.workspace.open("atom://config/core")settings-view:change-themesinvokeatom.workspace.open("atom://config/themes")Preparation
open two panes(
p1andp2), then activatep1, openatom//configWhen p1 is active
atom://configatom://config/coreatom://config/themesWhen p2 is active
atom://configby trying to open cachedsettingsViewitem on panep2atom://config/core: p1 activatedatom://config/themes: p1 activatedWhy?
Short explanation
pane.activateItem(item)have no issue.atom://config), it have no panel path. SV's pane is not activated in opener.pane.activateItem(item)is called against different pane of already opened SV's pane which resultThe workspace can only contain one instance of itemHow it happens
Later two URI's(
/core,/themes) have panel's path and it invokessettingsView.showPanel(panelName, options)settings-view/lib/main.js
Line 30 in b2b1288
Which eventually call
panel.focus, which make already openedsetting-viewitem's pane active.settings-view/lib/settings-view.js
Line 312 in b2b1288
Then this line's
container.getActivePane()return's same pane of already openedsetting-viewitem.https://github.com/atom/atom/blob/8ba04f0f0c184ab1522be5129ad511752d2c3e9c/src/workspace.js#L1001
Quick solution
searchAllPanes: trueoption inworkspace.open.getURI()is not usable as identity of item(URI is set to URI which initially created).