Skip to content

Calling navigateToFile on directory makes rstudio crash #321

Open

Description

@Roleren

I keep forgetting difference between filesPaneNavigate (which I want to use, i.e. move folder view to specified directory) and navigateToFile (which opens a file, and crashes the whole session if given a directory).

I can't be the only one, and Rstudio crashes with no way to rescue or no message if you feed a directory to navigateToFile (Ubuntu 22, rstudioapi 0.17.1)

If you want I can make a pull request for a simple dir check with abort ?

Activity

  1. kevinushey commented on Oct 22, 2025

    @kevinushey
    Contributor

    A pull request would be appreciated -- thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions