Skip to content

Uninterrupted promise error in debugger with non-standard eval expression #15461

Open

Description

@olivroy

System details

RStudio Edition : Desktop [Open Source]
RStudio Version : 2024.12.0.456
OS Version      : Windows 10 x64 (build 19045)
R Version       : R version 4.4.1 (2024-06-14 ucrt)

Steps to reproduce the problem

In a package, create the following function (possibly with usethis::use_r("file")

f <- function(x, expr) {

  x |>
    dplyr::select({{ expr }})
}
  1. Call devtools::load_all()

  2. Set a debug breakpoint here

Image

call the function in the console

f(mtcars, cyl)

  1. When in debugger, type expr in console.

Describe the problem in detail

I get many warnings printed to console

Basically, object 'cyl' not found.
Image

Describe the behavior you expected

No warning? I am not sure if this is a regression. I would compare it with 2023.12 as this is possibly a result of debugger refactoring in 2024.04, 2024.09, and 2024.12.

  • 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. added
    new
    on Nov 26, 2024
  2. changed the title [-]Uninterrupted promise error in debugger[/-] [+]Uninterrupted promise error in debugger with non-standard eval expression[/+] on Nov 26, 2024
  3. added this to the Mariposa Orchid milestone on Dec 9, 2024
  4. added and removed
    new
    on Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions