Skip to content

Error with promise already under evaluation #412

Closed

Description

@schloerke
Error (test-mytest.R:11:3): Migrated shinytest test: mytest.R
Error in `testthat::expect_snapshot_file(file, name = name_safe, cran = FALSE, 
    compare = compare, transform = transform, variant = self$get_variant())`: promise already under evaluation: recursive default argument reference or earlier problems?
Backtrace:
    ▆
 1. └─app$expect_values() at test-mytest.R:11:3
 2.   └─shinytest2:::app_expect_values(...)
 3.     └─shinytest2:::app__expect_snapshot_file(...)
 4.       ├─base::withCallingHandlers(...)
 5.       └─testthat::expect_snapshot_file(...)

This requires a new release to CRAN

Activity

  1. self-assigned this
    on Apr 11, 2025
  2. daattali commented on Apr 12, 2025

    @daattali
    Contributor

    Ah I made commits yesterday after more than a year to a few projects, and everything was failing! I spent all day yesterday trying to figure out what I did.... my mistake was choosing to return to work exactly on the day 0.4.0 was released :p

  3. schloerke commented on Apr 12, 2025

    @schloerke
    CollaboratorAuthor

    Sorry about that, @daattali ! v0.4.1 is on CRAN, now

  4. DivadNojnarg commented on Apr 14, 2025

    @DivadNojnarg
    Contributor

    Leaving a note here: shinytest2 is still under 0.4.0 on PPM (RSPM) something to consider if your CICD config points to such repositories: https://packagemanager.posit.co/client/#/repos/cran/packages/overview?search=shinytest2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions