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 }}
Repository navigation
Source column layout should be independent between RStudio instances #8107
Hi @salim-b thanks for bringing this issue up! We are storing the number of columns open so that the number of columns you have open remains consistent between sessions, but I do not expect columns to close because one is closed in another instance. I wasn't able to reproduce this in Ubuntu or MacOS, are you able to consistently reproduce this behavior?
are you able to consistently reproduce this behavior?
Yes. It happens every single time.
We are storing the number of columns open so that the number of columns you have open remains consistent between sessions
So this is a single global number for all sessions/instances, right? Couldn't this be changed to a per session/instance number? Other stuff like opened files etc. are also stored per session/instance AFAICT.
I can confirm that in v1.4.963 the source column layout is now async between opened RStudio instances.
But the source column layout is still not saved on a per-project basis, i.e. still seems to be a single global number for all sessions/instances. I guess this is what @melissa-barca pointed out in this comment.
Should I open a separate issue for this (i.e. saving source column layout in .Rproj.user/ and/or .Rproj)?
I was going to open a new issue but found this existing one here, which is close enough to my problem (I can reproduce the OP's issue in 1.4.869).
If I have two RStudio projects/sessions open, and I have the additional source pane open in each one, if I then close one of the projects, this reverts to the "original" configuration without the extra source pane. This then also closes the source pane in the other session! If I then do Ctrl+1 to focus on Source, the original source quadrant pops up, and sometimes it seems to still display my open files, sometimes not. So the source pane getting closed can lose my view of open, potentially unsaved files.
Luckily if I close the project and re-open, the unsaved files and work still seems to be there...
I feel like this issue is perhaps connected to my issue #8071 , in which I want an additional source pane displayed by default, without having to manually add it via the Global Options > Pane Layout menu each time.
I'm going to upgrade to the latest and see if this fixes the issue for me.
I'm going to upgrade to the latest and see if this fixes the issue for me.
this 👆
LOL... yeah I'm sorry, I should have checked I was on the latest preview version before posting! Just done one quick test and it seems like it's not an issue for me now.
Activity
melissa-barca commentedon Oct 19, 2020
Hi @salim-b thanks for bringing this issue up! We are storing the number of columns open so that the number of columns you have open remains consistent between sessions, but I do not expect columns to close because one is closed in another instance. I wasn't able to reproduce this in Ubuntu or MacOS, are you able to consistently reproduce this behavior?
salim-b commentedon Oct 19, 2020
Hey @melissa-barca
Yes. It happens every single time.
So this is a single global number for all sessions/instances, right? Couldn't this be changed to a per session/instance number? Other stuff like opened files etc. are also stored per session/instance AFAICT.
melissa-barca commentedon Oct 20, 2020
@salim-b there are definitely things we can do to make sure you don't lose a column when one is closed in another instance. I'm looking into this.
@rich-rstudio do you mind helping with a repro on this one?
rich-rstudio commentedon Oct 21, 2020
@melissa-barca I was able to reproduce on Ubuntu 20 and RStudio 1.4.954
salim-b commentedon Oct 23, 2020
I can confirm that in v1.4.963 the source column layout is now async between opened RStudio instances.
But the source column layout is still not saved on a per-project basis, i.e. still seems to be a single global number for all sessions/instances. I guess this is what @melissa-barca pointed out in this comment.
Should I open a separate issue for this (i.e. saving source column layout in
.Rproj.user/and/or.Rproj)?melissa-barca commentedon Oct 23, 2020
Thank you for confirming @salim-b! it looks like you found the right place to add your request.
francisbarton commentedon Nov 11, 2020
I was going to open a new issue but found this existing one here, which is close enough to my problem (I can reproduce the OP's issue in 1.4.869).
If I have two RStudio projects/sessions open, and I have the additional source pane open in each one, if I then close one of the projects, this reverts to the "original" configuration without the extra source pane. This then also closes the source pane in the other session! If I then do Ctrl+1 to focus on Source, the original source quadrant pops up, and sometimes it seems to still display my open files, sometimes not. So the source pane getting closed can lose my view of open, potentially unsaved files.
Luckily if I close the project and re-open, the unsaved files and work still seems to be there...
I feel like this issue is perhaps connected to my issue #8071 , in which I want an additional source pane displayed by default, without having to manually add it via the Global Options > Pane Layout menu each time.
I'm going to upgrade to the latest and see if this fixes the issue for me.
salim-b commentedon Nov 11, 2020
this 👆
francisbarton commentedon Nov 11, 2020
LOL... yeah I'm sorry, I should have checked I was on the latest preview version before posting! Just done one quick test and it seems like it's not an issue for me now.
kfeinauer commentedon Nov 16, 2020
Verified fixed 1.4.1035