Skip to content

Quarto: New Project Wizard dialogue box disappears if you try to exit out of error model  #10570

Closed

Description

@ChaitaC

System details

RStudio Edition : <!-- Desktop or Server -->
RStudio Version : 2022.06.0 Build 93
OS Version      : MacOS
R Version       : 4.1.1

Steps to reproduce the problem

  1. Click `New Project
    Screen Shot 2022-02-10 at 3 32 15 PM

  2. In New Project Wizard, click New Directory

  3. Click Quarto Project

  4. Keep Defaultand populate Directory Name TestQuarto

  5. Now, try to create another project with the same name (repeat steps 1-4)

  6. Since the directory name exits you see an validation error
    Screen Shot 2022-02-10 at 3 38 08 PM

  7. Click OK

Result:
Along with the error pop-up, the New Project wizard also closes.

Describe the problem in detail

The New Project Wizard dialogue box disappears if you try to exit out of the error model if the directory name already exists.

Describe the behavior you expected

Error model should disappear but the New Project Wizard dialogue should stay and allow the user to select a new file name

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

Activity

  1. romainfrancois commented on May 12, 2022

    @romainfrancois
    Contributor

    Similar with e.g. new shiny projects.

    OTOH, distill projects will happily install its things even if the directory exist. cc @cderv

  2. cderv commented on May 12, 2022

    @cderv
    Collaborator

    Thanks @romainfrancois

    I believe Quarto project, and probably shiny project creation are integrated into RStudio IDE. For R Markdown related project, I believe this is relying on RStudio Project template and a function in the package are called.

    It seems that those function called in R Console or through template project in IDE are not erroring when a directory exist.
    It is interesting that this has not been reported yet 🤔 Even if we were changing that in the R function, I am not sure it would error the same way as shown above as the code is run in R directly the error would be thrown there (in current windows or new session if selected).

    You think we should change the current behavior right ?

  3. romainfrancois commented on May 12, 2022

    @romainfrancois
  4. jgutman commented on May 16, 2022

    @jgutman
    Contributor

    Error message:
    image

    After hitting OK, new project wizard is still open:
    image

    Verified in 2022.6.0.406 RStudio Desktop on Mac OS 12.3.1

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions