Skip to content

rake 'get_clues[n,m]' fails with error #51

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

Open
cvessey-upei opened this issue Jan 31, 2024 · 1 comment
Open

rake 'get_clues[n,m]' fails with error #51

cvessey-upei opened this issue Jan 31, 2024 · 1 comment

Comments

@cvessey-upei
Copy link

cvessey-upei commented Jan 31, 2024

When you attempt to get_clues, you get an error:

NoMethodError: undefined method `captures' for nil:NilClass

	  			var_answer = answermatch.captures[0].to_s
	  			                        ^^^^^^^^^

This is because the answermatch might be nil. I fixed it by placing that into an if block checking for nil answermatch and skipping if not - and then it works - but it doesn't.

Now it doesn't make ANY clues. It correctly gets categories, but never gets a single clue.

@NieldSWND
Copy link

I've fixed this in my fork and opened up a Pull Request to merge it upstream. https://github.com/NieldSWND/jService/tree/master

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