Skip to content

Reject promise if searchRegion outside screenSize #196

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 3 commits into from
Feb 18, 2021

Conversation

dancesWithBugs
Copy link
Contributor

Prevents a comparatively cryptic OpenCV runtime error. Fixes #195.

Prevents a comparatively cryptic OpenCV runtime error.
Copy link
Member

@s1hofmann s1hofmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dancesWithBugs 👋

Thanks for your PR!

Would you mind adding a test verifying the updated implementation, if possible?

Please note that it won't be merged until the CI setup has been fully moved from Travis-CI to GitHub Actions, as we ran out of build credits on Travis and therefore are unable to run builds at the moment.

@dancesWithBugs
Copy link
Contributor Author

As for providing a test for my changes, I'm sorry to disappoint, but I will most likely not be writing one. I have yet to figure out how to properly set up a dev environment for nut.js/libnut etc, so could actually run any test cases I'd be writing. I believe I've asked you about that a while ago, but have not (yet) received an answer. Perhaps you could add a "Contribution" section to the respective READMEs of nut.js and related projects, giving a few pointers. Anyway, I am currently tending to other matters and I don't know if and when I might get back to nut.js again.

@dancesWithBugs
Copy link
Contributor Author

Of course I'll be available for discussion of my PRs/issues and fixing any bugs in my PRs (as I just did). :)

@svettwer svettwer assigned svettwer and unassigned dancesWithBugs Feb 17, 2021
@svettwer svettwer merged commit 0f2487e into nut-tree:develop Feb 18, 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

Successfully merging this pull request may close these issues.

Requesting image search outside of screen boundaries fails with runtime error
3 participants