Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go to directory... not opening Go to folder dialog #14501

Closed
4 tasks done
blairchesnut-at-duke opened this issue Mar 29, 2024 · 4 comments
Closed
4 tasks done

Go to directory... not opening Go to folder dialog #14501

blairchesnut-at-duke opened this issue Mar 29, 2024 · 4 comments
Assignees
Labels
bug desktop integration Desktop shell and OS integration; file associations, icons, etc.

Comments

@blairchesnut-at-duke
Copy link

blairchesnut-at-duke commented Mar 29, 2024

System details

RStudio Edition : Desktop
RStudio Version : 2023.12.1 Build 402
OS Version      : RH EL7 (3.10.0-1160.114.2.el7.x86_64)
R Version       : 4.3.1 (2023-06-16)

Steps to reproduce the problem

  1. From main menu, click Session -> Set Working Directory -> Choose Directory ...
    On Choose Working Directory dialog window, click ... (Go to directory)

or

  1. From Files tab, click ... (Go to directory)

Describe the problem in detail

  1. Another Choose Working Directory dialog window opens behind the first one.
    or
  2. A Choose Working Directory window opens; clicking on ... (Go to directory) opens another Choose Working Directory dialog

Describe the behavior you expected

Expected behavior is a Go to Folder dialog to be displayed with a Go to Folder textbox.

  • 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 an 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.

See also https://forum.posit.co/t/go-to-directory-not-working-in-rstudio-2023-12-1-build-402/184704

@blairchesnut-at-duke blairchesnut-at-duke added bug new New incoming issues, ready for initial review. labels Mar 29, 2024
@rstudio rstudio deleted a comment from lucasbarriga25 Mar 30, 2024
@blairchesnut-at-duke
Copy link
Author

Same issue occurs with prior versions of RStudio:
2023.06.1 Build 524
2023.03.2 Build 454

Two workarounds

  1. use setwd() then More -> Go to Working Directory on Files tab
  2. Tools -> Global Options... -> Advanced -> Use native file and message dialog boxes.

@gtritchie
Copy link
Member

I was able to reproduce this. On RStudio Desktop on Linux, with "Use native file and message dialog boxes" turned off (the default), each click on the "..." button in the "Choose Working Directory" dialog brings up another instance of the same dialog.

For example, clicking here:

click-here

brings up the same dialog (at the exact same location). In this case, I've done it twice, and moved the dialogs so they are visible:

multiple-dialogs

On RStudio Server, clicking that button instead brings up the correct dialog that lets you type in a path:

correct

@gtritchie gtritchie added the desktop integration Desktop shell and OS integration; file associations, icons, etc. label Apr 1, 2024
@ronblum ronblum added this to the Cranberry Hibiscus milestone Apr 10, 2024
@gtritchie gtritchie self-assigned this Apr 30, 2024
@gtritchie
Copy link
Member

Note to self: #11185

@ronblum
Copy link
Contributor

ronblum commented May 14, 2024

Verified in RStudio Desktop 2024.07.0-daily+131 on Windows 11 and SLES 15.5. Checked that both native and non-native dialogs work.

One issue: The first time that a native dialog is called, it's in front of the IDE. But on subsequent calls, the file explorer is behind the IDE. Is this the same as #14683?

@ronblum ronblum closed this as completed May 14, 2024
@ronblum ronblum self-assigned this May 14, 2024
@ronblum ronblum removed the new New incoming issues, ready for initial review. label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug desktop integration Desktop shell and OS integration; file associations, icons, etc.
Projects
None yet
Development

No branches or pull requests

3 participants