Skip to content

RStudio expands symlinks in preferences, breaking on upgrades/changes to target (e.g. git) #2476

Closed

Description

@neverfox

System details

RStudio Edition : Desktop
RStudio Version : 1.1.423
OS Version      : OS X 10.13.3
R Version       : 3.4.4

Steps to reproduce the problem

Change Preferences->Git/SVN->Git executable to /usr/local/bin/git, which is a symlink to a homebrew-installed git at /usr/local/Cellar/git/[version]/bin/git

Describe the problem in detail

When the change is made, RStudio expands the symlink to the real absolute path. Because this expanded path contains a version number, updates to new versions of git via brew break the RStudio<->git configuration. One is required to go into RStudio's preferences after every upgrade and fix the path.

Describe the behavior you expected

Entering a symlink to the git executable (or anything) should not expand, so that RStudio is tolerant of changes to the symlink's target. Symlinks are use by homebrew to abstract away the underlying versioned installation and RStudio should use this abstraction. While this is an issue raised for homebrew in particular, it's probably a good idea to respect symlinks literally in any case.

Activity

  1. added this to the v1.2 milestone on Mar 22, 2018
  2. self-assigned this
    on Mar 22, 2018
  3. added a commit that references this issue on Mar 22, 2018
    1633e99
  4. neverfox commented on Mar 23, 2018

    @neverfox
    Author

    Thanks for such a quick solution!

  5. kevinushey commented on Mar 23, 2018

    @kevinushey
    Collaborator

    Our pleasure. Thanks for the bug report!

  6. kevinushey commented on Jul 17, 2020

    @kevinushey
    Collaborator

    I can reproduce this issue in v1.3 and v1.4; it looks like it may have re-regressed.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions