weathercan icon indicating copy to clipboard operation
weathercan copied to clipboard

`vcr::vcr_test_path` issue from vcr v1.0.0

Open sckott opened this issue 3 years ago • 4 comments

With the latest version of vcr just up to CRAN I unfortunately caused breaking changes for some packages depending on vcr. The function vcr_test_path is the issue. The change to that function worked for some, but it apparently has broken other packages.

We have a proposed fix at https://github.com/ropensci/vcr/pull/236 Can you install that fork remotes::install_github("dpprdan/vcr@fix/test_path") and see if that fixes the problem?

sckott avatar May 24 '21 18:05 sckott

Okay, I tested with Fedora through R Hub and was able to replicate the original issue. Then I installed dpprdan/vcr@fix/test_path and added that to my remotes and tried again. The issue is gone! I've tested this fix with:

  • Fedor (GCC, clang)
  • Debian (devel GCC, clang)
  • Solaris (release)

I had prep errors for Debian GCC on patched and release so couldn't test those

steffilazerte avatar May 25 '21 21:05 steffilazerte

Great, thanks for testing that out. I'll ping here again when i've submitted a new version to CRAN

sckott avatar May 25 '21 23:05 sckott

A new version of vcr is on CRAN https://cloud.r-project.org/web/packages/vcr/ - CRAN checks for your package should be fixed soon once they are using the new version of vcr.

sckott avatar Jun 01 '21 16:06 sckott

Thanks!

steffilazerte avatar Jun 01 '21 17:06 steffilazerte

vcr working now for you?

sckott avatar Sep 20 '23 22:09 sckott

Well enough 😁 most of my tests still use it to a certain degree, but I am afraid to touch sometimes 😅

steffilazerte avatar Sep 20 '23 22:09 steffilazerte

I am afraid to touch sometimes

b/c of vcr or something else? if vcr, anything I can change in vcr to help with that?

sckott avatar Sep 20 '23 22:09 sckott

I think it's good now. I think my biggest problem was figuring out how vcr worked when running tests interactively. Either it's improved (🙏🏼) or I got better at understanding! I'll let you know if I run into problems which are vcr related. Thanks for checking in!

steffilazerte avatar Sep 20 '23 22:09 steffilazerte

yeah the interactive user experience is not ideal for sure. thanks for the feedback

sckott avatar Sep 20 '23 22:09 sckott