Skip to content

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

Merged
merged 7 commits into from
Jul 26, 2022
Merged

skip evaluation that hangs on bad input #1446

merged 7 commits into from
Jul 26, 2022

Conversation

MichaelChirico
Copy link
Collaborator

Closes #1443

Not totally happy we've solved the problem with a high level of generality, but it does close the issue at hand.

@IndrajeetPatil IndrajeetPatil requested a review from AshesITR July 24, 2022 08:15
Copy link
Collaborator

@AshesITR AshesITR left a 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.")
Copy link
Collaborator

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.

Copy link
Collaborator Author

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)

@MichaelChirico MichaelChirico added this to the 3.0.1 milestone Jul 25, 2022
@MichaelChirico MichaelChirico merged commit be40f0a into main Jul 26, 2022
@MichaelChirico MichaelChirico deleted the rmd-error branch July 26, 2022 07:27
@MichaelChirico MichaelChirico modified the milestones: 3.0.3, 3.1.0 Mar 20, 2023
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

Successfully merging this pull request may close these issues.

lintr hangs on openxlsx
3 participants