-
Notifications
You must be signed in to change notification settings - Fork 274
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
Add iteration index to errors #945
Merged
Merged
Changes from 19 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
de4e7fb
Add itearation index to errors
hadley 4e6941f
Cleaner framing; update snapshots
hadley d71bcc5
Only wrap errors that happen during iteration
hadley a5c3870
Remove now duplicated index from error
hadley 9cafb9d
Remove redundant test
hadley 7f69118
Switch back to Rf_errorcall()
hadley 5b6dbef
Merge commit 'db7bd02ec0fe9ed10d98c61a96d3f1339adf8203'
hadley d939dda
Merged origin/main into map-errors
hadley 00cb90a
Wrap map2() and modify()
hadley 5a9f410
Name arguments by convention
hadley c01d747
Use existing i variable
hadley adebf3b
Use simpler function
hadley f2bf469
Use r_abort_call() in map.c
hadley 8aef34f
Use consistent message for map2 recycling
hadley 8ec3eca
Add news bullet
hadley e54cf3e
WS
hadley 33029e7
Avoid coercion
hadley 02416fa
Match new dplyr errors
hadley 6d53304
Add missing full stops
hadley a96cef8
Use explicit caller_env argument
hadley f2961ec
Tweak with_indexed_errors
hadley 5f0d5b9
Use explicit error_call in predicate using functions
hadley b4c9e93
Use obj_type_friendly in coerce.c
hadley 2e7e817
Add missing full stop
hadley a8b56ad
Merge commit 'b1b446f850d8bfbc45c312b90724df83317b3b33'
hadley 8d5f13e
Better argument order
hadley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is still pretty unfortunate that we get parent call information that mentions
map_()
It seems rare that the parent call is actually useful. I had mentioned that we might consider setting
cnd$call <- NULL
or hardcoding it to.f
. Is that still an option? I feel like it would generally be less confusing because we'd have less chance of displaying confusing calls.So it would look like:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I strip the call from the error, I definitely lose useful information in the tests. So I think in most cases it is helpful, although it doesn't work so well with error checking functions. And you can already fix that if needed:
Created on 2022-09-23 with reprex v2.0.2