Calling navigateToFile on directory makes rstudio crash

Open
#321 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
api

Research direction

Start by locating the implementation and any tests for navigateToFile and compare its behavior with filesPaneNavigate. Reproduce the call with a directory on Ubuntu if available, then verify that passing a directory no longer crashes the RStudio session and produces the intended handling.

Written by the indexing model from the issue text.

Description

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 ?

Dominant language
R
Stars
175
Forks
37
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/rstudioapi

All issues in rstudio/rstudioapi

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.