Skip to content

Errors in mask methods carry wrong calls #6308

Description

@lionel-

CRAN rlang doesn't display calls of the form foo$fn(). Dev rlang now does, which reveals a few call problems in the error snapshots, for instance:

tibble() %>% summarise(stop("{"))
#> Error in `summarise()`:
#> ! Problem while computing `..1 = stop("{")`.
#> Caused by error in `mask$eval_all_summarise()`:
#> ! {
tbl <- tibble(x = 1:2, y = 1:2)
tbl %>%
  group_by(x) %>%
  mutate(y = NULL, a = sum(y))
#> Error in `mutate()`:
#> ! Problem while computing `a = sum(y)`.
#> ℹ The error occurred in group 1: x = 1.
#> Caused by error in `mask$eval_all_mutate()`:
#> ! object 'y' not found

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorverbs 🏃‍♀️

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions