Skip to content

Source column layout should be independent between RStudio instances #8107

Closed

Description

@salim-b

System details

RStudio Edition : Desktop
RStudio Version : 1.4.949
OS Version      : Ubuntu 20.04
R Version       : 4.0.3

Steps to reproduce the problem

  1. Open a single instance of RStudio and add one or more additional source columns, either

    • by navigating to Tools→Global Options…→Pane Layout, clicking Add Column and Applying the changes, or
    • by choosing View→Panes→Add Source Column.
  2. Open another RStudio instance. The source column layout is mirrored. Close one of the additional source columns in the new instance.

  3. The corresponding source column is closed in the first RStudio instance as well. Super annoying!

Describe the problem in detail

Both source column additions and removals seem to be shared between all RStudio instances which seems to be a bad design choice.

Describe the behavior you expected

I expected RStudio's source column layout to be independent between program instances.

  • I have read the guide for submitting good bug reports.
  • I have installed the latest version of RStudio, and confirmed that the issue still persists.
  • If I am reporting a RStudio crash, I have included a diagnostics report.
  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Activity

  1. melissa-barca commented on Oct 19, 2020

    @melissa-barca
    Contributor

    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?

  2. salim-b commented on Oct 19, 2020

    @salim-b
    ContributorAuthor

    Hey @melissa-barca

    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.

  3. melissa-barca commented on Oct 20, 2020

    @melissa-barca
    Contributor

    @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?

  4. rich-rstudio commented on Oct 21, 2020

    @rich-rstudio
    Contributor

    @melissa-barca I was able to reproduce on Ubuntu 20 and RStudio 1.4.954

  5. salim-b commented on Oct 23, 2020

    @salim-b
    ContributorAuthor

    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)?

  6. melissa-barca commented on Oct 23, 2020

    @melissa-barca
    Contributor

    Thank you for confirming @salim-b! it looks like you found the right place to add your request.

  7. francisbarton commented on Nov 11, 2020

    @francisbarton

    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.

  8. salim-b commented on Nov 11, 2020

    @salim-b
    ContributorAuthor

    I'm going to upgrade to the latest and see if this fixes the issue for me.

    this 👆

  9. francisbarton commented on Nov 11, 2020

    @francisbarton

    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.

  10. added this to the v1.4 milestone on Nov 16, 2020
  11. kfeinauer commented on Nov 16, 2020

    @kfeinauer
    Contributor

    Verified fixed 1.4.1035

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions