Skip to content
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

NameError (undefined local variable or method `possible_locations' for #<WickedPdf::Binary #1022

Closed
Quent1Pr opened this issue May 13, 2022 · 3 comments · Fixed by #1025
Closed

Comments

@Quent1Pr
Copy link

Hi, I identify a problem with a variable definition.

possible_locations is used here without being defined :

exe_path ||= possible_locations.map { |l| File.expand_path("#{l}/#{EXE_NAME}") }.find { |location| File.exist?(location) }

I used this library during several years without meet this problem before.

Environnement :
ruby '3.1.2'
'rails', '6.1.5'

@jensFrerichs
Copy link

We have the same problem:

undefined local variable or method `possible_locations' for #<WickedPdf::Binary:0x00007f3542a69130>
Did you mean?  possible_binary_locations

@olleolleolle
Copy link
Contributor

Introduced in #816, I suspect it's just a rename away to fix this. I'll PR real quick, to show what I mean.

@unixmonkey
Copy link
Collaborator

This is now published in version 2.6.3 of the gem. Thank you all for reporting and fixing!

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 a pull request may close this issue.

4 participants