Skip to content
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

traceback() is not being invoked correctly on error #518

Closed
kevinushey opened this issue Jun 10, 2021 · 1 comment
Closed

traceback() is not being invoked correctly on error #518

kevinushey opened this issue Jun 10, 2021 · 1 comment
Assignees

Comments

@kevinushey
Copy link
Contributor

For example, from https://community.rstudio.com/t/deployment-error-error-in-traceback-x-max-lines-max-lines/92617, the error trace has:

----- Error stack trace -----
Error in .traceback(x, max.lines = max.lines) :
length(max.lines) <= 1 is not TRUE
Calls: ... -> traceback -> .traceback -> stopifnot
Erros durante o embrulho: length(max.lines) <= 1 is not TRUE
Error: no more error handlers available (recursive errors?); invoking 'abort' restart
Execu��o interrompida

And we invoke traceback here:

$ ag -Q "traceback("
R/bundle.R
910:      traceback(3, sys.calls())

R/deployApp.R
162:      traceback(3, sys.calls())

But the second argument to traceback() is max.lines, not the R call stack.

@jmcphers
Copy link
Member

jmcphers commented Jul 2, 2021

Fixed via dbdc237

@jmcphers jmcphers closed this as completed Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants