-
Notifications
You must be signed in to change notification settings - Fork 186
skip evaluation that hangs on bad input #1446
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
Conversation
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.
Basically good now.
R/tree-utils.R
Outdated
tl_parent[i_not_assigned] <- pc$parent[match(tl_parent[i_not_assigned], pc$id)] | ||
i_not_assigned <- which(!tl_parent %in% tl_ids) | ||
if (length(i_not_assigned) >= prev_length) { | ||
stop("Logical error: unassigned set did not shrink. Check file syntax and please report as a bug.") |
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.
Add GitHub issue link? As-is the error message might not be clearly linked to lintr in production.
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.
Just added 'lintr' -- should be slightly more stable than referencing the GH link (GH site structure changes, or "turns evil" & we change hosts, etc)
Closes #1443
Not totally happy we've solved the problem with a high level of generality, but it does close the issue at hand.