-
Notifications
You must be signed in to change notification settings - Fork 155
Request: more informative error message #305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It would be helpful to know what commands, exactly, what you're running. The traceback:
seems to suggest you might be calling |
Looks like the traceback is wrong -- the code is here: I think that I need to normalize the project path to ensure it's absolute. |
Oh, the traceback is actually correct -- it's just that I had modified that line of code since then. This is what it looked like: Now that I look at it, I think I must have been running the command differently on my local system. 🤦♀ I have a feeling you don't think that you need to fix the code, but a clearer error message would still be helpful. |
OK, after more trial and error, I found that this works:
This does not: renv::snapshot(".", lockfile = "apps/renv.lock", confirm = FALSE) |
One more thought: it might be helpful to error if there are any |
I'm running
renv::snapshot()
in a GitHub Actions workflow and it's failing with this message:https://github.com/rstudio/shiny-core-ci/runs/351435079#step:11:11
It would be very helpful to have an error message that explains what the problem is. FWIW, I don't get the error message when I run it locally, but I'm not sure why it's different. I worked around this in GitHub Actions by using
path=getwd()
.The text was updated successfully, but these errors were encountered: